]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
pb python3
authorpascale.noyret <pascale.noyret@edf.fr>
Thu, 20 Apr 2017 14:38:24 +0000 (16:38 +0200)
committerpascale.noyret <pascale.noyret@edf.fr>
Thu, 20 Apr 2017 14:38:24 +0000 (16:38 +0200)
CMakeLists.txt

index be6811fd0f855d1bb045cc423d51f2c181aaf519..2ecd6000cae8bcc3f48979c51dfde05329b0a888 100644 (file)
@@ -27,14 +27,14 @@ project ( Eficas CXX C )
 set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules" )
 
 # Detection de Python
-find_package ( PythonInterp 2.4 REQUIRED )
+find_package ( PythonInterp  REQUIRED )
 if (PYTHONINTERP_FOUND)
   string ( RANDOM tmpPyScript )
   set ( tmpPyScript "${tmpPyScript}.py" )
   file ( WRITE  ${tmpPyScript}
 "# Automaticaly generated by CMake. Do NOT edit. Changes will be lost
 import sys
-print '%d.%d' % ( sys.version_info[0], sys.version_info[1] )
+print ('%d.%d' % ( sys.version_info[0], sys.version_info[1] ))
 " )
   get_source_file_property ( PYSCRIPT_LOC ${tmpPyScript} LOCATION )
   execute_process ( COMMAND ${PYTHON_EXECUTABLE} ${PYSCRIPT_LOC}