A cookiecutter template for creating a C++ packages with custom Python extension with xtensor
THIS IS THIS WORK IN PROGRESS
xtensor-python-cookiecutter-v2 helps extension authors create a C++ package and Python extension modules making use of xtensor.
It takes care of the initial work of generating a project skeleton with
-
A complete
setup.pycompiling the extension module. Thesetup.pyscript is calling CMake, CMake is the actual build system. -
Automatic download of cpp dependencies:
- xtensor
- doctest
- pybind11
- xtensor-python
-
Dependencies users needs to handle manually:
- cmake
- numpy
Install cookiecutter:
$ pip install cookiecutter
After installing cookiecutter, use the xtensor-python-cookiecutter-v2:
$ cookiecutter https://github.com/DerThorsten/xtensor-python-cookiecutter-v2.git
TODO
