]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix Numpy version conflict when using custom Numpy with System Python and that anothe... B4NGCMakeInt
authorbarate <barate>
Tue, 18 Dec 2012 16:12:35 +0000 (16:12 +0000)
committerbarate <barate>
Tue, 18 Dec 2012 16:12:35 +0000 (16:12 +0000)
salome_adm/cmake_files/FindPYTHON.cmake
salome_adm/unix/config_files/check_swig.m4

index df658fba494ada1a4bdd7a2be4e7cc97e71df820..136332b0f02e9eb9ec6313645887d9bf7a1e2e3b 100644 (file)
@@ -214,7 +214,7 @@ IF(PYTHON_STATUS)
   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)
index 1109f91544a295ac073b18b2d46c105f73b5a02b..ccee20d06eb16a3056452c0228b189a4ab7788d3 100644 (file)
@@ -61,7 +61,7 @@ fi
 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