From: Nabil Ghodbane Date: Wed, 15 May 2024 07:45:04 +0000 (+0200) Subject: spns #41854: RO8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e799686a1222a0407892ef14e35c469fe1d36d0;p=tools%2Fsat_salome.git spns #41854: RO8 --- diff --git a/applications/SALOME-master-native.pyconf b/applications/SALOME-master-native.pyconf index 9b94a97..63191ca 100644 --- a/applications/SALOME-master-native.pyconf +++ b/applications/SALOME-master-native.pyconf @@ -311,8 +311,13 @@ __overwrite__ : 'APPLICATION.products.openturns' : {tag: '1.22', base: 'no', section: 'version_1_22_CO8' } 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip' } 'APPLICATION.products.statsmodels' : {tag: '0.6.1', base: 'no', section: 'version_0_6_1_no_pip' } - 'APPLICATION.products.gdal' : {tag:'2.4.0', base: 'no', section: 'version_2_4_0_CO8_native'} # spns #29324 + 'APPLICATION.products.gdal' : {tag: '2.4.0', base: 'no', section: 'version_2_4_0_CO8_native'} # spns #29324 'APPLICATION.products.swig' : '4.0.2' + 'APPLICATION.products.mdurl' : {tag: '0.1.0', base: 'no', section: 'version_0_1_0_no_pip' } + 'APPLICATION.products.markdown_it_py' : {tag: '2.0.1', base: 'no', section: 'version_2_0_1_no_pip' } + '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' } } { __condition__ : "VARS.dist in ['CO9']" diff --git a/products/compil_scripts/h5py-3.0.0.sh b/products/compil_scripts/h5py-3.0.0.sh new file mode 100755 index 0000000..c3ce967 --- /dev/null +++ b/products/compil_scripts/h5py-3.0.0.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +echo "##########################################################################" +echo "h5py" $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip + +mkdir -p $PRODUCT_INSTALL + +cd $BUILD_DIR + +export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH +export PATH=${PRODUCT_INSTALL}/bin:$PATH + +case $LINUX_DISTRIBUTION in + CO8) + WHEELS=('h5py-3.0.0-cp36-cp36m-manylinux1_x86_64.whl') + ;; + *) + echo "Not implemented" + exit 1 + ;; +esac +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 +if [ -d ${PRODUCT_INSTALL}/lib64 ]; then + mv ${PRODUCT_INSTALL}/lib64 ${PRODUCT_INSTALL}/lib +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/markdown-it-py-2.0.1.sh b/products/compil_scripts/markdown-it-py-2.0.1.sh new file mode 100755 index 0000000..aa1a907 --- /dev/null +++ b/products/compil_scripts/markdown-it-py-2.0.1.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +echo "##########################################################################" +echo "markdown-it-py" $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.0.1-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 +echo "########## END" diff --git a/products/compil_scripts/mdurl-0.1.0.sh b/products/compil_scripts/mdurl-0.1.0.sh new file mode 100755 index 0000000..f0e836d --- /dev/null +++ b/products/compil_scripts/mdurl-0.1.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=('mdurl-0.1.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 + +echo +echo "########## END" diff --git a/products/compil_scripts/meshio-4.3.13.sh b/products/compil_scripts/meshio-4.3.13.sh new file mode 100755 index 0000000..94551a5 --- /dev/null +++ b/products/compil_scripts/meshio-4.3.13.sh @@ -0,0 +1,28 @@ +#!/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 + +WHEELS=('cached_property-1.5.2-py2.py3-none-any.whl' 'meshio-4.3.13-py3-none-any.whl') +for WHEEL in "${WHEELS[@]}"; do + ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip $SOURCE_DIR/$WHEEL --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/rich-12.6.0.sh b/products/compil_scripts/rich-12.6.0.sh new file mode 100755 index 0000000..0c6dcb3 --- /dev/null +++ b/products/compil_scripts/rich-12.6.0.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +echo "##########################################################################" +echo "rich" $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=('rich-12.6.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/h5py.pyconf b/products/h5py.pyconf index d17634a..cd85a27 100644 --- a/products/h5py.pyconf +++ b/products/h5py.pyconf @@ -47,3 +47,14 @@ version_3_11_0_win: pip : "yes" } } + +version_3_0_0_no_pip: +{ + compil_script: "h5py-3.0.0" + $VARS.scriptExtension + archive_info : {archive_name : "h5py-3.0.0-x86_64.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + } +} diff --git a/products/markdown_it_py.pyconf b/products/markdown_it_py.pyconf index 8d33fb0..76d70de 100644 --- a/products/markdown_it_py.pyconf +++ b/products/markdown_it_py.pyconf @@ -62,3 +62,14 @@ version_2_2_0_no_pip: pip : "no" } } + +version_2_0_1_no_pip: +{ + compil_script: "markdown-it-py-2.0.1" + $VARS.scriptExtension + archive_info : {archive_name : "markdown-it-py-2.0.1-x86_64.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + } +} diff --git a/products/mdurl.pyconf b/products/mdurl.pyconf index 627234b..8de90e4 100644 --- a/products/mdurl.pyconf +++ b/products/mdurl.pyconf @@ -48,3 +48,14 @@ version_0_1_2_win: pip : "yes" } } + +version_0_1_0_no_pip: +{ + compil_script: "mdurl-0.1.0" + $VARS.scriptExtension + archive_info : {archive_name : "mdurl-0.1.0-x86_64.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + } +} diff --git a/products/meshio.pyconf b/products/meshio.pyconf index 3dbe3c3..390a75d 100644 --- a/products/meshio.pyconf +++ b/products/meshio.pyconf @@ -69,3 +69,15 @@ version_5_3_4_no_pip : single_install_dir : "no" } } + +version_4_3_13_no_pip : +{ + compil_script: "meshio-4.3.13" + $VARS.scriptExtension + archive_info : {archive_name : "meshio-4.3.13-x86_64.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + single_install_dir : "no" + } +} diff --git a/products/rich.pyconf b/products/rich.pyconf index 6a9ec4f..39db5f7 100644 --- a/products/rich.pyconf +++ b/products/rich.pyconf @@ -42,6 +42,9 @@ version_13_7_1_no_pip: } } +version_13_7_1 : +{} + version_13_7_1_win : { depend : ['Python', 'numpy', 'hdf5', 'h5py', 'markdown_it_py', 'Pygments'] @@ -51,3 +54,17 @@ version_13_7_1_win : pip : "yes" } } + +version_12_6_0_no_pip: +{ + compil_script: "rich-12.6.0" + $VARS.scriptExtension + archive_info : + { + archive_name : "rich-12.6.0-x86_64.tar.gz" + } + properties : + { + incremental : "yes" + pip : "no" + } +}