From 7a77ad37e47429557a465bc6bb9cdc2a523f16e5 Mon Sep 17 00:00:00 2001 From: Guytri KASTANE Date: Mon, 2 Sep 2024 09:32:50 +0200 Subject: [PATCH] spns #42820: updated configuration files and scripts for compilation on FD32 --- applications/SALOME-master-native.pyconf | 2 ++ products/breathe.pyconf | 29 ++++++++++++++++++++ products/compil_scripts/breathe-4.11.1.sh | 33 +++++++++++++++++++++++ products/compil_scripts/breathe-4.26.0.sh | 33 +++++++++++++++++++++++ products/compil_scripts/breathe-4.35.0.sh | 33 +++++++++++++++++++++++ products/env_scripts/breathe.py | 5 ++++ 6 files changed, 135 insertions(+) create mode 100755 products/compil_scripts/breathe-4.11.1.sh create mode 100755 products/compil_scripts/breathe-4.26.0.sh create mode 100755 products/compil_scripts/breathe-4.35.0.sh diff --git a/applications/SALOME-master-native.pyconf b/applications/SALOME-master-native.pyconf index 6bf92cb..cd24912 100644 --- a/applications/SALOME-master-native.pyconf +++ b/applications/SALOME-master-native.pyconf @@ -371,6 +371,8 @@ __overwrite__ : 'APPLICATION.products.rich' : {tag: '13.7.1', base: 'no', section: 'version_13_7_1_no_pip'} 'APPLICATION.products.meshio' : {tag: '5.3.5' , base: 'no', section: 'version_5_3_5_no_pip' } 'APPLICATION.products.h5py' : {tag: '3.11.0', base: 'no', section: 'version_3_11_0_no_pip'} + 'APPLICATION.products.breathe' : {tag: '4.11.1', base: 'no', section: 'version_4_11_1_no_pip'} + 'APPLICATION.products.exhale' : {tag: '0.2.4', base: 'no', section: 'version_0_2_4_no_pip' } 'APPLICATION.products.YACS' : {tag: 'master', base: 'no', section: 'version_master_FD32' } } { diff --git a/products/breathe.pyconf b/products/breathe.pyconf index 5bfd311..55c902c 100644 --- a/products/breathe.pyconf +++ b/products/breathe.pyconf @@ -27,3 +27,32 @@ default : } } +version_4_35_0_no_pip : +{ + compil_script : 'breathe-4.35.0.sh' + properties: + { + incremental : "yes" + pip : "no" + } +} + +version_4_26_0_no_pip : +{ + compil_script : 'breathe-4.26.0.sh' + properties: + { + incremental : "yes" + pip : "no" + } +} + +version_4_11_1_no_pip : +{ + compil_script : 'breathe-4.11.1.sh' + properties: + { + incremental : "yes" + pip : "no" + } +} diff --git a/products/compil_scripts/breathe-4.11.1.sh b/products/compil_scripts/breathe-4.11.1.sh new file mode 100755 index 0000000..421fbaf --- /dev/null +++ b/products/compil_scripts/breathe-4.11.1.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +echo "##########################################################################" +echo "breathe" $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + +if [ ! -d $PRODUCT_INSTALL ]; then + mkdir -p $PRODUCT_INSTALL +fi + +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR + +WHEELS=('breathe-4.11.1-py2.py3-none-any.whl') +for WHEEL in "${WHEELS[@]}"; do + ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip $SOURCE_DIR/$WHEEL --no-deps --target=$PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages + if [ $? -ne 0 ]; then + echo "ERROR: could not install $WHEEL" + exit 1 + fi +done +ls -ltr $PRODUCT_INSTALL/ +if [ -d ${PRODUCT_INSTALL}/lib64 ]; then + mv ${PRODUCT_INSTALL}/lib64 ${PRODUCT_INSTALL}/lib +elif [ -d ${PRODUCT_INSTALL}/local ]; then + mv ${PRODUCT_INSTALL}/local ${PRODUCT_INSTALL}/lib +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/breathe-4.26.0.sh b/products/compil_scripts/breathe-4.26.0.sh new file mode 100755 index 0000000..82a5a82 --- /dev/null +++ b/products/compil_scripts/breathe-4.26.0.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +echo "##########################################################################" +echo "breathe" $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + +if [ ! -d $PRODUCT_INSTALL ]; then + mkdir -p $PRODUCT_INSTALL +fi + +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR + +WHEELS=('breathe-4.26.0-py3-none-any.whl') +for WHEEL in "${WHEELS[@]}"; do + ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip $SOURCE_DIR/$WHEEL --no-deps --target=$PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages + if [ $? -ne 0 ]; then + echo "ERROR: could not install $WHEEL" + exit 1 + fi +done +ls -ltr $PRODUCT_INSTALL/ +if [ -d ${PRODUCT_INSTALL}/lib64 ]; then + mv ${PRODUCT_INSTALL}/lib64 ${PRODUCT_INSTALL}/lib +elif [ -d ${PRODUCT_INSTALL}/local ]; then + mv ${PRODUCT_INSTALL}/local ${PRODUCT_INSTALL}/lib +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/breathe-4.35.0.sh b/products/compil_scripts/breathe-4.35.0.sh new file mode 100755 index 0000000..0591e16 --- /dev/null +++ b/products/compil_scripts/breathe-4.35.0.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +echo "##########################################################################" +echo "breathe" $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + +if [ ! -d $PRODUCT_INSTALL ]; then + mkdir -p $PRODUCT_INSTALL +fi + +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR + +WHEELS=('breathe-4.35.0-py3-none-any.whl') +for WHEEL in "${WHEELS[@]}"; do + ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip $SOURCE_DIR/$WHEEL --no-deps --target=$PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages + if [ $? -ne 0 ]; then + echo "ERROR: could not install $WHEEL" + exit 1 + fi +done +ls -ltr $PRODUCT_INSTALL/ +if [ -d ${PRODUCT_INSTALL}/lib64 ]; then + mv ${PRODUCT_INSTALL}/lib64 ${PRODUCT_INSTALL}/lib +elif [ -d ${PRODUCT_INSTALL}/local ]; then + mv ${PRODUCT_INSTALL}/local ${PRODUCT_INSTALL}/lib +fi + +echo +echo "########## END" diff --git a/products/env_scripts/breathe.py b/products/env_scripts/breathe.py index 15aebec..d278098 100644 --- a/products/env_scripts/breathe.py +++ b/products/env_scripts/breathe.py @@ -2,9 +2,14 @@ #-*- coding:utf-8 -*- import os +import platform def set_env(env, prereq_dir, version): env.set("BREATHE_ROOT_DIR",prereq_dir) + if not platform.system() == "Windows" : + pyver = 'python' + env.get('PYTHON_VERSION') + env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) def set_nativ_env(env): pass -- 2.39.2