Skip to main content

Load a PEP 517 backend from inside the source tree

Project description

Load a PEP 517 backend from within the source tree.

In PEP 517, package building backends are not loaded from the source of the package being built. This prevents accidentally shadowing your build system, but some packages, like build tools, want to act as their own backend.

intreehooks is a shim to work around this, so that a source tree can be built by itself. To use it, write a pyproject.toml like this:

requires = ["intreehooks"]  # + any other packages required to build
build-backend = "intreehooks:loader"

build-backend = "flit.buildapi"  # Import path of your real backend

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for intreehooks, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size intreehooks-1.0-py2.py3-none-any.whl (3.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size intreehooks-1.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page