https://github.com/sizmailov/pybind11-project-example
A minimal self-contained pybind11 project example
https://github.com/sizmailov/pybind11-project-example
example-project pybind11
Last synced: 8 months ago
JSON representation
A minimal self-contained pybind11 project example
- Host: GitHub
- URL: https://github.com/sizmailov/pybind11-project-example
- Owner: sizmailov
- Created: 2019-07-31T12:38:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-08T09:44:26.000Z (about 4 years ago)
- Last Synced: 2025-03-31T22:25:00.693Z (10 months ago)
- Topics: example-project, pybind11
- Language: C++
- Size: 16.6 KB
- Stars: 7
- Watchers: 1
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
An example of C++ project with pybind11 bindings
The primary purpose of this project is to test `pybind11-stubgen `_ functionality.
It can be used as a C++ python module template.
Project layout
--------------
.. code-block:: sh
./include/cpp_library/ # includes (.h) of C++ project
./src/ # sources (.cpp) of C++ project
./cpp_library_bindings/ # pybind11 bindings of C++ project
./external/ # root for 3rd party libraries sources (pybind11, gtests, etc.)
Build module shared library
---------------------------
Needed only for testing/debug
.. code-block:: sh
mkdir build
(cd build ; cmake .. )
Install python
--------------
The build step will be invoked automatically during install process
.. code-block:: sh
python setup.py install # regular python install is working