/example_pybind

basic example for pybind

Primary LanguageCMake

mkdir build
cd build
cmake ..
make
this could build your code and generate a .so file

In that same dir run
python
import xtensor_python_test
xtensor_python_test.sum_of_sines(3)

from setuptools

just cd into root where setup.py is and run
pip install .
now you can use the code from anywhere