Python package builder and installer for non-pip-centric world
Project description
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:
get-backend to read build-backend from pyproject.toml (auxiliary command).
build-wheel to call the respeective PEP 517 backend in order to produce a wheel.
install-wheel to install a wheel into the specified directory,
install-from-source that combines building a wheel and installing it (without leaving the artifacts),
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:
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}"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gpep517-9.tar.gz
.
File metadata
- Download URL: gpep517-9.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0b4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ccde200a156736d79286ecd0089cc9ef346a1c99ca22bd4b8cf0ba38fad467 |
|
MD5 | 9ba855edb486548fd6f3ac3ce729d81a |
|
BLAKE2b-256 | 2cbaa652ee461583af8fd24ff7affc710cc30587b2e2fd089fd718d6ce0ae461 |
File details
Details for the file gpep517-9-py3-none-any.whl
.
File metadata
- Download URL: gpep517-9-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0b4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74207cddb13b0fb8c860966a29b84b69812396a7a718760676d3a3a5a0e17c25 |
|
MD5 | 90aa864cb3aa2cc47a806b01c5f6d4ee |
|
BLAKE2b-256 | 1cc2de8a09231885fa5690db1d459eada516b10c3444aaa5b8a18e8c28c904fd |