test-data/pybind11_fixtures/setup.py
raw| 1 | # pybind11 is available at setup time due to pyproject.toml |
| 2 | from pybind11.setup_helpers import Pybind11Extension |
| 3 | from setuptools import setup |
| 4 | |
| 5 | # Documentation: https://pybind11.readthedocs.io/en/stable/compiling.html |
| 6 | ext_modules = [ |
| 7 | Pybind11Extension( |
| 8 | "pybind11_fixtures", |
| 9 | ["src/main.cpp"], |
| 10 | cxx_std=17, |
| 11 | ), |
| 12 | ] |
| 13 | |
| 14 | setup( |
| 15 | name="pybind11_fixtures", |
| 16 | version="0.0.1", |
| 17 | ext_modules=ext_modules, |
| 18 | ) |