Skip to main content

A backend script to aid installing Python packages in Gentoo.

Project description

gpep517 is a minimal backend script to aid installing Python packages through PEP 517-compliant build systems. Its main purpose is to supplement Gentoo eclasses with the necessary Python code.

Commands

gpep517 implements three commands:

  1. get-backend to read build-backend from pyproject.toml.

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

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

Dependencies

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

  1. tomli for TOML parsing in Python < 3.11

  2. installer for wheel installation

Example

Example use (without error handling):

backend=$(gpep517 get-backend)
mkdir -p build
wheel_name=$(
    gpep517 build-wheel --output-fd 3 --wheel-dir dist \
        --backend "${backend:-setuptools.build_meta:__legacy__}" \
        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

gpep517-3.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

gpep517-3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file gpep517-3.tar.gz.

File metadata

  • Download URL: gpep517-3.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for gpep517-3.tar.gz
Algorithm Hash digest
SHA256 5c49d6b3e55130e243ed1d2bbad8f4df6b93120d222479554958643b95764e93
MD5 ff50e6114ed378432d5d2473465878ec
BLAKE2b-256 04aae7dd25f09ef01cd09d8860de45661f59c78f59011e766908549f2279ee42

See more details on using hashes here.

Provenance

File details

Details for the file gpep517-3-py3-none-any.whl.

File metadata

  • Download URL: gpep517-3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for gpep517-3-py3-none-any.whl
Algorithm Hash digest
SHA256 8d41fbe88181ed3f01bc71e19aac0090d737dca4e4bdcbd7f0a68429a5f0ad40
MD5 f35bfd2699bbde12101aefbf13ba4e66
BLAKE2b-256 3168cf7130fee88a3f0b594ae3e84107b81207a23afdc2f83133d9cf6e2e5a28

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