From c553aec2a5ee3a76f0125e4cc699fbd7c3b93374 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Wed, 12 Apr 2023 11:14:32 +0200 Subject: [PATCH] spns #34285: openturns - use symbolic link and use rm instead of rmdir --- products/compil_scripts/openturns-1.20.1.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/products/compil_scripts/openturns-1.20.1.sh b/products/compil_scripts/openturns-1.20.1.sh index 4e96090..e9bd988 100755 --- a/products/compil_scripts/openturns-1.20.1.sh +++ b/products/compil_scripts/openturns-1.20.1.sh @@ -159,19 +159,17 @@ fi if [ -d "${PRODUCT_INSTALL}/lib64" ]; then echo "WARNING: moving lib64 to lib" mv ${PRODUCT_INSTALL}/lib64/* ${PRODUCT_INSTALL}/lib/ - rmdir ${PRODUCT_INSTALL}/lib64 + rm -rf ${PRODUCT_INSTALL}/lib64 elif [ -d "${PRODUCT_INSTALL}/local/lib64" ]; then echo "WARNING: moving local/lib64 to lib" mv ${PRODUCT_INSTALL}/local/lib64/* ${PRODUCT_INSTALL}/lib/ - rmdir ${PRODUCT_INSTALL}/local/lib64 + rm -rf ${PRODUCT_INSTALL}/local/lib64 fi if [[ -d "${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages" ]]; then echo "WARNING: renaming ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages as ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages" cd ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION} - ls -l - mv dist-packages site-packages - ls -l + ln -sf dist-packages site-packages cd $BUILD_DIR/openturns fi -- 2.39.2