From: Jean-Philippe ARGAUD Date: Fri, 27 Oct 2023 05:57:54 +0000 (+0200) Subject: Adding automatic sha1 storage during installation update X-Git-Tag: V9_12_0b1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f9d5dc90550a874c690862671c1a1ad2dedbbccd;p=modules%2Fadao.git Adding automatic sha1 storage during installation update --- diff --git a/src/daSalome/CMakeLists.txt b/src/daSalome/CMakeLists.txt index 2e53eea..76012f9 100644 --- a/src/daSalome/CMakeLists.txt +++ b/src/daSalome/CMakeLists.txt @@ -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__ = \'\'\" ) ")