From 9d717e7aa06d85dbbbe98d28e44bd600dce4a73e Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Mon, 13 May 2024 16:08:51 +0200 Subject: [PATCH] spns #41854: DB10 --- applications/SALOME-master-native.pyconf | 5 +++ .../compil_scripts/markdown-it-py-2.2.0.sh | 28 ++++++++++++++ products/compil_scripts/meshio-5.3.4.sh | 38 +++++++++++++++++++ products/markdown_it_py.pyconf | 14 +++++++ products/meshio.pyconf | 20 ++++++++-- 5 files changed, 101 insertions(+), 4 deletions(-) create mode 100755 products/compil_scripts/markdown-it-py-2.2.0.sh create mode 100755 products/compil_scripts/meshio-5.3.4.sh diff --git a/applications/SALOME-master-native.pyconf b/applications/SALOME-master-native.pyconf index 21ab43c..d9991ae 100644 --- a/applications/SALOME-master-native.pyconf +++ b/applications/SALOME-master-native.pyconf @@ -264,6 +264,11 @@ __overwrite__ : 'APPLICATION.products.swig' : '4.0.2' 'APPLICATION.products.openmpi' : '4.1.5' 'APPLICATION.products.MEDCOUPLING' : {tag:'master', base: 'no', section: 'default_MPI', hpc: 'yes'} + 'APPLICATION.products.mdurl' : {tag: '0.1.2', base: 'no', section: 'version_0_1_2_no_pip' } + 'APPLICATION.products.markdown_it_py' : {tag: '2.2.0', base : 'no', section: 'version_2_2_0_no_pip'} + 'APPLICATION.products.rich' : {tag: '13.7.1', base: 'no', section: 'version_13_7_1_no_pip' } + 'APPLICATION.products.meshio' : {tag: '5.3.4', base: 'no', section: 'version_5_3_4_no_pip'} + 'APPLICATION.products.numpy' : {tag: '1.20.3', base: 'no', section: 'version_1_20_3' } } { __condition__ : "VARS.dist in ['DB11']" diff --git a/products/compil_scripts/markdown-it-py-2.2.0.sh b/products/compil_scripts/markdown-it-py-2.2.0.sh new file mode 100755 index 0000000..8fbed50 --- /dev/null +++ b/products/compil_scripts/markdown-it-py-2.2.0.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +echo "##########################################################################" +echo "mdurl" $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + +echo "*** check installation" +mkdir -p ${PRODUCT_INSTALL} +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR + +export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH +export PATH=${PRODUCT_INSTALL}/bin:$PATH + +WHEELS=('markdown_it_py-2.2.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 --prefix=$PRODUCT_INSTALL + if [ $? -ne 0 ]; then + echo "ERROR: could not install $WHEEL" + exit 1 + fi +done + +echo +echo "########## END" diff --git a/products/compil_scripts/meshio-5.3.4.sh b/products/compil_scripts/meshio-5.3.4.sh new file mode 100755 index 0000000..19ec707 --- /dev/null +++ b/products/compil_scripts/meshio-5.3.4.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +echo "##########################################################################" +echo "meshio" $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + +echo "*** check installation" +mkdir -p ${PRODUCT_INSTALL} +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR + +export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH +export PATH=${PRODUCT_INSTALL}/bin:$PATH + +case $LINUX_DISTRIBUTION in + DB10) + WHEELS=('typing_extensions-4.7.1-py3-none-any.whl' + 'meshio-5.3.4-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 + ;; + *) + echo "not implemented" + exit 1 + ;; +esac + +echo +echo "########## END" diff --git a/products/markdown_it_py.pyconf b/products/markdown_it_py.pyconf index 0d3e1fd..47a78c7 100644 --- a/products/markdown_it_py.pyconf +++ b/products/markdown_it_py.pyconf @@ -39,6 +39,9 @@ version_3_0_0_no_pip: } } +version_3_0_0: +{} + version_3_0_0_win: { archive_info : {archive_name : "markdown-it-py-3.0.0.tar.gz"} @@ -48,3 +51,14 @@ version_3_0_0_win: pip : "yes" } } + +version_2_2_0_no_pip: +{ + compil_script: "markdown-it-py-2.2.0" + $VARS.scriptExtension + archive_info : {archive_name : "markdown-it-py-2.2.0-x86_64.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + } +} diff --git a/products/meshio.pyconf b/products/meshio.pyconf index c1e6e7c..3dbe3c3 100644 --- a/products/meshio.pyconf +++ b/products/meshio.pyconf @@ -29,10 +29,6 @@ default : } } -version_5_3_5 : -{ -} - version_5_3_5_no_pip : { compil_script: "meshio-5.3.5" + $VARS.scriptExtension @@ -45,6 +41,10 @@ version_5_3_5_no_pip : } } +version_5_3_5 : +{ +} + version_5_3_5_win : { compil_script: "meshio-5.3.5.bat" @@ -57,3 +57,15 @@ version_5_3_5_win : } depend : ['Python', 'numpy', 'hdf5', 'h5py','rich', 'netCDF4'] } + +version_5_3_4_no_pip : +{ + compil_script: "meshio-5.3.4" + $VARS.scriptExtension + archive_info : {archive_name : "meshio-5.3.4-x86_64.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + single_install_dir : "no" + } +} -- 2.39.2