Closed mattjj closed 7 years ago
Thanks for reporting this. Indeed, the old build script didn't handle non-standard numpy include paths (the default numpy installation places a symlink in the Python include directory).
I've updated CMakeLists.txt
to auto-detect it (similar to how you've described it). Let me know if you run into any issues.
I'm on a pretty clean Ubuntu environment and I installed the dependencies for the native extensions listed in the README. My
pip install lycon
command failed like this:I think I fixed it by setting CPATH to the output of
python -c "import numpy as np; print np.get_include()"
. Since I'm using the Anaconda python distribution, for me those are in/home/ubuntu/miniconda2/lib/python2.7/site-packages/numpy/core/include
.You might be able to fix this by calling
np.get_include()
somewhere in your setup.py and forwarding it to your build process, but I haven't looked in detail. I'm sure you have a better idea of how to fix it!