From: Guytri KASTANE Date: Fri, 30 Aug 2024 10:34:12 +0000 (+0200) Subject: spns #42820: updated configuration files and scripts for compilation on RO8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1962c49e005bae4f46ae4869a08736cb5e5f810e;p=tools%2Fsat_salome.git spns #42820: updated configuration files and scripts for compilation on RO8 --- diff --git a/applications/SALOME-master-native.pyconf b/applications/SALOME-master-native.pyconf index 41fd622..cc4acac 100644 --- a/applications/SALOME-master-native.pyconf +++ b/applications/SALOME-master-native.pyconf @@ -37,6 +37,7 @@ APPLICATION : # PREREQUISITES : alabaster : 'native' Babel : 'native' + beautifulsoup4: 'native' boost : 'native' breathe : 'native' CAS : {tag : 'CR780-SALOME-PATCH', section: 'version_CR780_SALOME_PATCH', base: 'no'} @@ -76,6 +77,7 @@ APPLICATION : lapack : 'native' libxml2 : 'native' llvm : 'native' + lxml : 'native' markupsafe : 'native' matplotlib : 'native' mdurl : 'native' @@ -289,6 +291,7 @@ __overwrite__ : } { __condition__ : "VARS.dist in ['DB12']" + 'APPLICATION.rm_products' : ['beautifulsoup4'] # causes crashes 'APPLICATION.products.cmake' : 'native' # TTK requires cmake > 3.21 'APPLICATION.products.cftime' : 'native' 'APPLICATION.products.h5py' : 'native' @@ -322,6 +325,7 @@ __overwrite__ : 'APPLICATION.products.rich' : {tag: '12.6.0', base: 'no', section: 'version_12_6_0_no_pip'} 'APPLICATION.products.meshio' : {tag: '4.3.13', base: 'no', section: 'version_4_3_13_no_pip' } 'APPLICATION.products.h5py' : {tag: '3.0.0', base: 'no', section: 'version_3_0_0_no_pip' } + 'APPLICATION.products.exhale' : {tag: '0.2.4', base: 'no', section: 'version_0_2_4_no_pip' } } { __condition__ : "VARS.dist in ['CO9']" diff --git a/products/beautifulsoup4.pyconf b/products/beautifulsoup4.pyconf index a964f1a..1531340 100644 --- a/products/beautifulsoup4.pyconf +++ b/products/beautifulsoup4.pyconf @@ -5,11 +5,19 @@ default : compil_script : 'pip_install' + $VARS.scriptExtension get_source : "archive" archive_info : {archive_prefix : "beautifulsoup4"} + system_info: + { + rpm : ["python3-beautifulsoup4"] + rpm_dev : [] + apt : [] + apt_dev : [] + } environ : { env_script : "beautifulsoup4.py" } - depend : ['Python', 'setuptools', 'soupsieve'] + depend : ['Python', 'setuptools'] + opt_depend : ['soupsieve'] source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + "beautifulsoup4" build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + "beautifulsoup4" install_dir : 'base' diff --git a/products/compil_scripts/exhale-0.2.4.sh b/products/compil_scripts/exhale-0.2.4.sh new file mode 100755 index 0000000..32e17d2 --- /dev/null +++ b/products/compil_scripts/exhale-0.2.4.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +echo "##########################################################################" +echo "exhale" $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=('exhale-0.2.4-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/env_scripts/exhale.py b/products/env_scripts/exhale.py index 7f79539..4932718 100644 --- a/products/env_scripts/exhale.py +++ b/products/env_scripts/exhale.py @@ -2,9 +2,14 @@ #-*- coding:utf-8 -*- import os +import platform def set_env(env, prereq_dir, version): env.set("EXHALE_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 diff --git a/products/exhale.pyconf b/products/exhale.pyconf index 910de18..633f8e7 100644 --- a/products/exhale.pyconf +++ b/products/exhale.pyconf @@ -27,4 +27,13 @@ default : pip : "yes" } } - +version_0_2_4_no_pip : +{ + compil_script : 'exhale-0.2.4.sh' + properties: + { + incremental : "yes" + pip : "no" + } + +} diff --git a/products/lxml.pyconf b/products/lxml.pyconf index 372bb01..771453e 100644 --- a/products/lxml.pyconf +++ b/products/lxml.pyconf @@ -5,6 +5,13 @@ default : compil_script : 'pip_install' + $VARS.scriptExtension get_source : "archive" archive_info : {archive_prefix : "lxml"} + system_info: + { + rpm : ["python3-lxml"] + rpm_dev : [] + apt : ["python3-lxml"] + apt_dev : [] + } environ : { env_script : "lxml.py"