Skip to content

python-cmaketools/pybind-example

Repository files navigation

pybind11_example for python-cmaketools

GitHub Workflow Status LICENSE

This is a remake of the pybind's CMake example to built a Python package using the cmaketools setuptools extension.

Usage

Just clone this repository and pip install. Note the --recursive option which is needed for the pybind11 submodule:

git clone --recursive https://github.com/python-cmaketools/pybind-example
pip install cmaketools # if not installed yet
pip install -e . # temp checkout
pytest tests/test.py
pip uninstall pybind_example

With the setup.py file included in this example, the pip install command will invoke CMake and build the pybind11 module as specified in CMakeLists.txt.

License

Pybind11 is provided under a BSD-style license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.

About

Template to build a new Python package using cmaketools and pybind11

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published