]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Prise en compte de l'option RELOCATABLE pour la packaging pypi
authorGilles DAVID <gilles-g.david@edf.fr>
Sat, 26 Oct 2024 11:08:49 +0000 (13:08 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Sat, 26 Oct 2024 11:08:49 +0000 (13:08 +0200)
activate
pyproject.toml

index dfe3df41c6dd9f4ebc6228dd961def6afc3d8172..fe76f9fcdef94eabbb29526193e45a96f156d674 100644 (file)
--- a/activate
+++ b/activate
@@ -13,11 +13,6 @@ deactivate () {
         export PYTHONHOME
         unset _OLD_VIRTUAL_PYTHONHOME
     fi
-    if [ -n "${_OLD_VIRTUAL_LD_LIBRARY_PATH:-}" ] ; then
-        LD_LIBRARY_PATH="${_OLD_VIRTUAL_LD_LIBRARY_PATH:-}"
-        export LD_LIBRARY_PATH
-        unset _OLD_VIRTUAL_LD_LIBRARY_PATH
-    fi
 
     # This should detect bash and zsh, which have a hash command that must
     # be called to get it to forget past commands.  Without forgetting
@@ -47,6 +42,7 @@ export VIRTUAL_ENV
 
 _OLD_VIRTUAL_PATH="$PATH"
 PATH="$VIRTUAL_ENV/bin:$PATH"
+PATH="$VIRTUAL_ENV/bin/salome:$PATH"
 export PATH
 
 # unset PYTHONHOME if set
@@ -63,12 +59,6 @@ if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
     export PS1
 fi
 
-PATH="$VIRTUAL_ENV/bin/salome:$PATH"
-
-_OLD_VIRTUAL_LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-}"
-LD_LIBRARY_PATH="$VIRTUAL_ENV/lib/salome:$LD_LIBRARY_PATH"
-export LD_LIBRARY_PATH
-
 # This should detect bash and zsh, which have a hash command that must
 # be called to get it to forget past commands.  Without forgetting
 # past commands the $PATH changes we made may not be respected
index ef8b16cef43a2367fd708d16fe3b82714dceeade..ed8863424391a5ad183d6cb4c885f55e2393bd48 100644 (file)
@@ -20,6 +20,7 @@ dynamic = ["version"]
 scipy = ["scipy"]
 
 [tool.scikit-build.cmake.define]
+RELOCATABLE = "ON"
 SALOME_BUILD_TESTS = "ON"
 SALOME_USE_LIBBATCH = "ON"
 SALOME_USE_64BIT_IDS = "ON"