Skip to main content

Modern, PEP 517 compliant build backend for building Python packages with

Project description

Python Wheel

py-build-cmake

Modern, PEP 517 compliant build backend for building Python packages with extensions built using CMake.

Features

  • Build C, C++ or Fortran extensions for Python using CMake
  • Declarative configuration using pyproject.toml (PEP 621), compatible with flit
  • Compatible with pybind11
  • Generate stubs for type checking and suggestions
  • Customizable CMake configuration, build and installation options
  • Support for multiple installation configurations
  • Editable/development installations for Python modules (PEP 660)
  • No dependency on setuptools

Planned features

  • Entry point support
  • Namespace package support (PEP 420)
  • Doxygen and Sphinx support
  • OSX support

Installation

The py-build-cmake package is available on PyPI:

pip install py-build-cmake

Usage

Add a pyproject.toml configuration file (see examples/minimal for detailed instructions), and use pip, build or another PEP 517 compatible frontend to install and/or build the package.

Build sdist and wheel packages you can upload to PyPI:

python -m build . # find the sdist and wheel file in the 'dist' folder

Install the package in the current environment:

pip install . # normal installation
pip install -e . # editable installation

Examples

For example usage, see the examples/minimal and examples/pybind11-project example projects.

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

py-build-cmake-0.0.0a3.tar.gz (11.5 kB view details)

Uploaded Source

Built Distributions

py_build_cmake-0.0.0a3-py310-none-any.whl (12.0 kB view details)

Uploaded Python 3.10

py_build_cmake-0.0.0a3-py39-none-any.whl (12.0 kB view details)

Uploaded Python 3.9

py_build_cmake-0.0.0a3-py38-none-any.whl (12.0 kB view details)

Uploaded Python 3.8

File details

Details for the file py-build-cmake-0.0.0a3.tar.gz.

File metadata

  • Download URL: py-build-cmake-0.0.0a3.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for py-build-cmake-0.0.0a3.tar.gz
Algorithm Hash digest
SHA256 06a98ebff9ad7e0f2172a86fddb79f274e57e4aab08d8651eb1641531a9b8007
MD5 f5214c1972d20e400ea75ab5dd5806a5
BLAKE2b-256 6b9a80110751aa46a625e2903bed88f6efdbfadb5d1f29f6f2c16518762d133e

See more details on using hashes here.

File details

Details for the file py_build_cmake-0.0.0a3-py310-none-any.whl.

File metadata

  • Download URL: py_build_cmake-0.0.0a3-py310-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3.10
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for py_build_cmake-0.0.0a3-py310-none-any.whl
Algorithm Hash digest
SHA256 4eba78c4a189d528f51161c93f1ebde053c8a898881ecbf8c1e6f4a63d2ed260
MD5 32de2983a1bcd734fc87d89fb6dd1418
BLAKE2b-256 4bf708fd33bb254ecf1d7f797aea96d08563be6d1489254016855e171f3a4a19

See more details on using hashes here.

File details

Details for the file py_build_cmake-0.0.0a3-py39-none-any.whl.

File metadata

  • Download URL: py_build_cmake-0.0.0a3-py39-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for py_build_cmake-0.0.0a3-py39-none-any.whl
Algorithm Hash digest
SHA256 ee021355cb9f46a043d1e66a6c746e319673f1064fa03f3e3875a0b6b8f8842f
MD5 5fadab47ea235ff42bd4e8001e059aef
BLAKE2b-256 77abbd30322e5999c627e5323307d68db7973e478203fc90fd57f5a4e8ce516f

See more details on using hashes here.

File details

Details for the file py_build_cmake-0.0.0a3-py38-none-any.whl.

File metadata

  • Download URL: py_build_cmake-0.0.0a3-py38-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for py_build_cmake-0.0.0a3-py38-none-any.whl
Algorithm Hash digest
SHA256 0b790b5dd7437686e5750330fa771a162dd223f7ac700e1c0d5b0e0b6132bc92
MD5 2a3df23608b05320a7223b78671f12d4
BLAKE2b-256 79ecec67767bad824bc222226b6c5b308f9f55b5117e517d1248c24ae57025c0

See more details on using hashes here.

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