Please, what is the easiest / most elegant way to determine the correct paths for numpy since they are present on the target system? And then use it with the make command? I'm currently using
gcc ... -I / usr / include / python2.7 / -I / usr / lib / python2.7 / site-packages / numpy / core / include / numpy /
and I would like these two options to be automatically selected based on the system on which the assembly is performed.
It looks like I can get the second option, for example:
python -c "import numpy; print numpy.__path__[0] + 'core/include/numpy/'"
but I'm not sure about the first one, and even if I were, I would not be sure how best to use it from the makefile (in a simple / elegant way).
source share