cython-cpp-test
cython-cpp-test copied to clipboard
This shows how to use Cython to wrap C++
This is a self-contained example of how to wrap C++ with Cython.
Assuming you have Python, Cython, Git and a C++ compiler installed, all you need to do is:
$ git clone https://github.com/sturlamolden/cython-cpp-test
$ cd cython-cpp-test
$ python setup.py build_ext --inplace
$ python test.py
Written by Sturla Molden, Dec. 2014
Use at your own risk. This code is in the public domain.