]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
SCIPY detection
authorageay <ageay>
Tue, 26 Nov 2013 09:59:57 +0000 (09:59 +0000)
committerageay <ageay>
Tue, 26 Nov 2013 09:59:57 +0000 (09:59 +0000)
adm_local_without_kernel/cmake_files/FindSalomePython.cmake

index 13adbcdb0cb89eefee4fd2e8d13337710d1a9c0e..680f862a582704c0fd8923a80f8ec70600fe3ea7 100644 (file)
@@ -167,7 +167,14 @@ IF (SALOMEPYTHON_FOUND)
   ELSE(NUMPY_FOUND)
     MESSAGE(STATUS "NumPy not found.")
   ENDIF(NUMPY_FOUND)
-
+  # SciPy detection
+  EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import scipy ; import sys ; sys.stdout.write(scipy.version.version)" OUTPUT_VARIABLE SCIPY_VERSION ERROR_QUIET )
+  IF(SCIPY_VERSION)
+    SET(SCIPY_FOUND TRUE)
+  ENDIF(SCIPY_VERSION)
+  IF(SCIPY_FOUND)
+    MESSAGE(STATUS "Scipy found : Version ${SCIPY_VERSION}")
+  ENDIF(SCIPY_FOUND)
   ## None here    
 ELSE()
   MESSAGE(STATUS "Python was only partially (or not at all) found .")