ENDIF(NUMPY_INCLUDE_DIR)
IF(NUMPY_STATUS)
SET(PYTHON_INCLUDES ${PYTHON_INCLUDES} -DWITH_NUMPY -I${NUMPY_INCLUDE_DIR})# to remove
- SET(PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIR})
+ SET(PYTHON_INCLUDE_DIRS ${NUMPY_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS})
SET(PYTHON_DEFINITIONS "${PYTHON_DEFINITIONS} -DWITH_NUMPY")
MESSAGE(STATUS "numpy found : ${NUMPY_INCLUDE_DIR}")
ELSE(NUMPY_STATUS)
numpydir=`$PYTHON -c "import numpy;print numpy.get_include()" 2>/dev/null`
if test -d "$numpydir"; then
numpy_ok=yes
- PYTHON_INCLUDES="$PYTHON_INCLUDES -I$numpydir"
+ PYTHON_INCLUDES="-I$numpydir $PYTHON_INCLUDES"
SWIG_FLAGS="$SWIG_FLAGS -DWITH_NUMPY=WITH_NUMPY "
AC_DEFINE([WITH_NUMPY], [], [Python has numpy extension])
fi