mirror of
https://github.com/triqs/dft_tools
synced 2024-10-31 11:13:46 +01:00
Fix #8
- Order of inclusion of Python include path and nunpy python include path reversed. --> on Ubuntu 12.04, there is a link numpy in /usr/include/python2.7 which was *before* the numpy include path, i.e. in this case the new version of numpy installed by virtualenv. By reversing the order of the include, the numpy arrayobject.h file of virtualenv is found first, the Python.h is found anyway in the correct system directory (does not change with new numpy version). O. Parcollet
This commit is contained in:
parent
e3c0ab526a
commit
d86c0df332
@ -100,7 +100,7 @@ if (PythonSupport)
|
||||
endif()
|
||||
|
||||
set (TRIQS_LIBRARY_PYTHON ${PYTHON_LIBRARY} ${PYTHON_EXTRA_LIBS})
|
||||
set (TRIQS_INCLUDE_PYTHON ${PYTHON_INCLUDE_DIRS} ${PYTHON_NUMPY_INCLUDE_DIR})
|
||||
set (TRIQS_INCLUDE_PYTHON ${PYTHON_NUMPY_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS})
|
||||
|
||||
include_directories(SYSTEM ${TRIQS_INCLUDE_PYTHON} )
|
||||
#include_directories(SYSTEM ${PYTHON_NUMPY_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS})
|
||||
|
Loading…
Reference in New Issue
Block a user