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)
just cd into root where setup.py is and run
pip install .
now you can use the code from anywhere