Skip to main content

Setuptools extension for building pybind11 libraries with CMake

Project description

setuptools-pybind11

Setuptools extension for building pybind11 libraries with CMake

Usage

Add setuptools-pybind11 to your pyproject.toml

[build-system]
requires = ["setuptools", "wheel", "setuptools-pybind11[cmake]"]

Use setuptools-pybind11 if you don't want to automatically install cmake

Create a setup.py file

from setuptools_pybind11 import PyBindModule, setup

SRC_DIR = os.path.dirname(__file__)

setup([
    PyBindModule(
        module_name="example",
        source_dir=SRC_DIR,
        dep_bin_prefixes=["example-dep"]
    )]
)

Build your module python -m build --wheel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

setuptools_pybind11-0.2.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

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