From 9a643fab5489c68c39e62bf407d29fc8da099324 Mon Sep 17 00:00:00 2001 From: Guytri Kastane Date: Tue, 14 May 2024 11:43:21 +0200 Subject: [PATCH] spns #41843: support python API if system NLopt - Rocky 8,9 fix --- products/compil_scripts/nlopt.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/products/compil_scripts/nlopt.sh b/products/compil_scripts/nlopt.sh index 955eb6e..1bd9841 100755 --- a/products/compil_scripts/nlopt.sh +++ b/products/compil_scripts/nlopt.sh @@ -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" -- 2.39.2