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-6.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpep517-6-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpep517-6.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0b3

File hashes

Hashes for gpep517-6.tar.gz
Algorithm Hash digest
SHA256 3452338bde9d6550bc97c8d3d257f228396e69f5e87de475a8ac5b6f4819eeba
MD5 28bd09e246a34cbf5c71e31e643269d0
BLAKE2b-256 897d8c165fa3cce78b57b13e21652bc4d55d503fe2fe76982f55c84730d3d9cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpep517-6-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0b3

File hashes

Hashes for gpep517-6-py3-none-any.whl
Algorithm Hash digest
SHA256 d8d8bbc406dd466e194414a21364cde18b534d877c2cd79a8f5e84d1b2f1e203
MD5 b38a90a6cf420be50169894c9c10ca45
BLAKE2b-256 9759f500521d84fa0deaebbd2ae9ebbc2f623d6b99bbd7a9fe202220ea6d17d4

See more details on using hashes here.

Supported by

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