Has been ported to Rust and continued here: https://github.com/martinxyz/progenitor
This repo is abandoned.
Still good as a template for a mixed C++/Python project. Note: setting up a mixed Rust/Python project was so much easier in comparison, the build setup was almost a no-op.
git submodule update --init --recursive
# OPTIONAL: set optimization flags (default is just -O3)
# on ARM: -mcpu=native
# on x86: -march=native
# remove the 'build' directory after changing this
#export CXXFLAGS='-march=native'
pip3 install -v -e .
To execute all unit tests:
python3 ./setup.py test
- Python 3
- CMake 3.8 or higher
- Compiler with C++17 support
The build system is based on python_cpp_example by Benjamin R. Jack.