Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7e6e188a authored by testcdash Nicolas Bellot's avatar testcdash Nicolas Bellot Committed by hhakim
Browse files

wrapper test python

parent ee3cb1e5
Branches
Tags
No related merge requests found
......@@ -48,14 +48,14 @@ try:
print('Python module numpy is installed')
except ImportError:
print('Python module numpy is missing !')
output_value=1
output_value=-1
try:
import Cython
print('Python module Cython is installed')
except ImportError:
print('Python module Cython is missing !')
output_value=1
output_value=-1
###### OPTIONAL MODULE ######
......@@ -64,6 +64,6 @@ try:
print('Python module Scipy is installed')
except ImportError:
print('Python module Scipy is not present, no time comparison with scipy will be made')
output_value=2
output_value=1
exit(output_value)
......@@ -93,10 +93,10 @@ if(${PYTHON_MODULE_MISSING} EQUAL -1)
message(FATAL_ERROR "necessary python module (numpy or cython) are missing !!!")
elseif(${PYTHON_MODULE_MISSING} EQUAL 1)
message(STATUS "optional python module scipy is missing, no time comparison with scipy will be made")
set(PYTHON_MODULE_SCIPY ON)
set(PYTHON_MODULE_SCIPY OFF)
else(${PYTHON_MODULE_MISSING})
message(STATUS "all the python module are installed (numpy,cython and scipy)")
endif(${PYTHON_MODULE_MISSING})
endif()
message(STATUS "------------------------------------------------")
message(STATUS " ")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment