Modern, PEP 517 compliant build backend for building Python packages with
Project description
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
Release history Release notifications | RSS feed
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 hashes)
Built Distributions
Close
Hashes for py_build_cmake-0.0.0a3-py310-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eba78c4a189d528f51161c93f1ebde053c8a898881ecbf8c1e6f4a63d2ed260 |
|
MD5 | 32de2983a1bcd734fc87d89fb6dd1418 |
|
BLAKE2b-256 | 4bf708fd33bb254ecf1d7f797aea96d08563be6d1489254016855e171f3a4a19 |
Close
Hashes for py_build_cmake-0.0.0a3-py39-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee021355cb9f46a043d1e66a6c746e319673f1064fa03f3e3875a0b6b8f8842f |
|
MD5 | 5fadab47ea235ff42bd4e8001e059aef |
|
BLAKE2b-256 | 77abbd30322e5999c627e5323307d68db7973e478203fc90fd57f5a4e8ce516f |
Close
Hashes for py_build_cmake-0.0.0a3-py38-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b790b5dd7437686e5750330fa771a162dd223f7ac700e1c0d5b0e0b6132bc92 |
|
MD5 | 2a3df23608b05320a7223b78671f12d4 |
|
BLAKE2b-256 | 79ecec67767bad824bc222226b6c5b308f9f55b5117e517d1248c24ae57025c0 |