Numpyでヘッダーのinclude pathを取得する方法 ( How to print include path of Numpy FIles ? )
の応用問題.
cythonを使うときにsetup.pyでよく使うトリックだが makefileでinclude pathが欲しい場合も当然使える.
NUMPY_INCL_PATH = $(shell python -c "import numpy; print numpy.get_include()")
の応用問題.
cythonを使うときにsetup.pyでよく使うトリックだが makefileでinclude pathが欲しい場合も当然使える.
NUMPY_INCL_PATH = $(shell python -c "import numpy; print numpy.get_include()")