]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #41843: support python API if system NLopt - Rocky 8,9 fix
authorGuytri Kastane <Guytri.Kastane@csgroup.eu>
Tue, 14 May 2024 09:43:21 +0000 (11:43 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 14 May 2024 09:43:21 +0000 (11:43 +0200)
products/compil_scripts/nlopt.sh

index 955eb6e79e9889cb1b4189ae537850cfa536a65a..1bd9841525601dd237dfde73291075799c846a07 100755 (executable)
@@ -4,6 +4,7 @@ echo "##########################################################################
 echo "nlopt" $VERSION
 echo "##########################################################################"
 
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
 
 #
 function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; }
@@ -38,6 +39,16 @@ then
     exit 3
 fi
 
+case $LINUX_DISTRIBUTION in
+       CO8*|CO9*)
+               echo "WARNING: move files from lib64 to lib"
+               mv $PRODUCT_INSTALL/lib64/python$PYTHON_VERSION/site-packages/* $PRODUCT_INSTALL/lib/python$PYTHON_VERSION/site-packages/
+               rm -rf  $PRODUCT_INSTALL/lib64/
+               ;;
+       *)
+               ;;
+esac
+
 echo
 echo "########## END"