]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Adding automatic sha1 storage during installation update
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Fri, 27 Oct 2023 05:57:54 +0000 (07:57 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Fri, 27 Oct 2023 06:00:48 +0000 (08:00 +0200)
src/daSalome/CMakeLists.txt

index 2e53eeac7660b3b5a03b4c94a269d80933a3a323..76012f9c47f6eb1b3d75aad3c88be1e020245be1 100644 (file)
@@ -27,12 +27,9 @@ if( NOT ADAO_SALOME_MODULE)
 
 else(NOT ADAO_SALOME_MODULE)
 
-  SET(ENV{PYTHONPATH} "${CMAKE_INSTALL_PREFIX}/${ADAO_SCRIPT_PYTHON}:$ENV{PYTHONPATH}")
-  EXECUTE_PROCESS(COMMAND python3 -c "import adao; print(adao.__version__)" OUTPUT_VARIABLE ADAO_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
-  SALOME_SETUP_VERSION(${ADAO_VERSION})
   INSTALL(CODE "
     FILE(WRITE ${CMAKE_INSTALL_PREFIX}/${ADAO_SCRIPT_PYTHON_SALOME}/salome/adao/__init__.py
-    \"__version__ = \'${ADAO_VERSION}\'\n__sha1__ = \'${ADAO_GIT_SHA1}\'\"
+    \"import adao\n__version__ = adao.__version__\n__sha1__ = \'\'\"
     )
   ")