Useful as an C++ template for small projects, and for learning.
This package depends on pybind11. Easiest way to install is to do:
git clone https://github.com/pybind/pybind11.git
I've used version 2.12.0.dev1
.
To prepare cmake run:
cmake .
This will download the dependencies and generate the appropriate build files. Then compile the program with:
cmake --build .
A binary named 'wcc' will be generated.
Additionally, the build should create a python_extension.cpython-...
file. This can be used as follows:
import python_extension
python_extension.add(3, 5)