Skip to main content

gpep517

gpep517 is a minimal tool to aid building wheels for Python packages through PEP 517-compliant build systems and installing them. The tool originated from Gentoo with its primary goals being absolutely minimal dependency footprint to ease clean bootstrap without bundling dependencies, and clean separation of functions to aid external package managers. It is the tool of choice for a world that does not revolve around pip and venvs.

Commands

gpep517 implements the following commands:

  1. get-backend to read build-backend from pyproject.toml (auxiliary command).

  2. build-wheel to call the respeective PEP 517 backend in order to produce a wheel.

  3. install-wheel to install a wheel into the specified directory,

  4. install-from-source that combines building a wheel and installing it (without leaving the artifacts),

  5. verify-pyc to verify that the .pyc files in the specified install tree are correct and up-to-date.

Dependencies

gpep517 aims to minimize the dependency footprint to ease bootstrap. At the moment, it depends on two packages:

  1. tomli for TOML parsing in Python < 3.11

  2. installer for wheel installation

Additionally, PEP 517 build requires flit_core. However, the package can be used from the source tree or manually installed without that dependency.

Running the test suite requires pytest and flit_core (as provided by the test extra). Additional build systems can be installed to extend integration testing (test-full extra). A tox file is also provided to ease running tests.

Examples

The simplest way to install a package from the current directory is to use the install-from-source command, e.g.:

gpep517 install-from-source --destdir install --optimize all

gpep517 can also be used as a thin wrapper over the installer package, to install a prebuilt wheel:

gpep517 install-wheel --destdir install --optimize all \
    gpep517-8-py3-none-any.whl

Alternatively, the wheel can be built and installed separately. Notably, this leaves the built wheel in the specified directory for reuse:

set -e
mkdir -p dist
wheel_name=$(
    # the output forwarding trick guarantees that the underlying
    # backend will not output into ${wheel_name}
    gpep517 build-wheel --output-fd 3 --wheel-dir dist \
        3>&1 >&2
)
gpep517 install-wheel --destdir install "dist/${wheel_name}"

Metadata

Release files for gpep517 11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpep517 11
File Size Uploaded Provenance Actions
gpep517-11.tar.gz 16.8 kB Without provenance Details for gpep517-11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gpep517 11
File Interpreter ABI Platform Actions
gpep517-11-py3-none-any.whl Python 3 none any Details for gpep517-11-py3-none-any.whl

Total release size: 25.2 kB

Release files / gpep517-11.tar.gz

Download URL gpep517-11.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3aa77bfe63d3c33bc1743dcbaef2941f2c8a28dbc4a595af221e0ea0b6e58f90
BLAKE2b-256 checksum
How to use checksums
0ad3931089ae4924f040b7861e20ab1a5d4899647147c841cf0ac79342a681e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release files / gpep517-11-py3-none-any.whl

Download URL gpep517-11-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcec3b0216e3bd0f0b142a5fcd5e8d45b7f0636cd1359a7849d089b10e2ece9d
BLAKE2b-256 checksum
How to use checksums
87a644d2fd45905bb775f4fba12789f42f1b55eb570111fe2ef982ecb9428609
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Security for gpep517 11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page