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:

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

[tool.intreehooks]
build-backend = "flit.buildapi"  # Import path of your real backend

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

intreehooks-1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

intreehooks-1.0-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file intreehooks-1.0.tar.gz.

File metadata

  • Download URL: intreehooks-1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for intreehooks-1.0.tar.gz
Algorithm Hash digest
SHA256 87e600d3b16b97ed219c078681260639e77ef5a17c0e0dbdd5a302f99b4e34e1
MD5 5b95c8cab2cfcbf3385c87216878e3cd
BLAKE2b-256 f9a55dacebf93232a847970921af2b020f9f2a8e0064e3a97727cd38efc77ba0

See more details on using hashes here.

Provenance

File details

Details for the file intreehooks-1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for intreehooks-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 937fd547f6a8a913107eaba51875dd1e185c00c2f0e68bcb217821962db4caec
MD5 5747b68ee097bd3ee43b03c182599719
BLAKE2b-256 725db6e188060e2a73b1d6eec7378ad18887c288a59a8cda1f5e2091519c91d9

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page