From: Nabil Ghodbane Date: Tue, 7 May 2024 12:16:07 +0000 (+0200) Subject: spns #41854: Implement meshio in SAT X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7346724d6ba498efd1545ad8429ef1aa0bbb809e;p=tools%2Fsat_salome.git spns #41854: Implement meshio in SAT --- diff --git a/applications/SALOME-master-native.pyconf b/applications/SALOME-master-native.pyconf index 3c82a54..de41bbc 100644 --- a/applications/SALOME-master-native.pyconf +++ b/applications/SALOME-master-native.pyconf @@ -42,6 +42,7 @@ APPLICATION : catalyst: '2.0' C3PO: 'v2.3' certifi : 'native' + cftime: 'native' cgns : '4.2.0' chardet : 'native' click : 'native' @@ -63,6 +64,7 @@ APPLICATION : gdal : 'native' gmsh : '4.10.3' graphviz : 'native' + h5py : 'native' hdf5 : '1.10.3' idna : 'native' imagesize : 'native' @@ -74,15 +76,19 @@ APPLICATION : llvm : 'native' markupsafe : 'native' matplotlib : 'native' + mdurl : 'native' + markdown_it_py : '3.0.0' medfile : '4.1.1' mesa : {tag : '19.0.8-x86_64-'+$VARS.dist, base: 'no', section: 'version_bin'} MeshGems : '2.15-1' + meshio: '5.3.5' metis : 'native' mpi4py: 'native' netgen : '5.3.1_with_CAS_7.2' # comment out line above and uncomment the line below to use Netgen 6. #netgen : '6.2.2101' netcdf : 'native' + netCDF4: 'native' nlopt : 'native' nose: 'native' numpy : 'native' @@ -114,6 +120,7 @@ APPLICATION : qwt : 'native' requests : 'native' rkCommon : '1.5.1' + rich : '13.7.1' root: '6.22.02' scipy : 'native' scotch : {tag: '6.1.2', section: 'version_6_1_2_MPI', hpc: 'yes', base: 'no'} @@ -212,22 +219,32 @@ __overwrite__ : 'APPLICATION.products.opencv' : '3.2.0' 'APPLICATION.products.cminpack' : 'native' 'APPLICATION.products.netcdf' : '4.6.2' - 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip' } - 'APPLICATION.products.scipy' : {tag: '1.5.2', base: 'no', section: 'version_1_5_2_no_pip' } # scipy >= 1.4 - system one too old + 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip' } + 'APPLICATION.products.scipy' : {tag: '1.5.2', base: 'no', section: 'version_1_5_2_no_pip' } # scipy >= 1.4 - system one too old + 'APPLICATION.products.mdurl' : {tag: '0.1.2', base: 'no', section: 'version_0_1_2_no_pip' } + 'APPLICATION.products.markdown_it_py' : {tag: '3.0.0', base: 'no', section: 'version_3_0_0_no_pip' } + 'APPLICATION.products.rich' : {tag: '13.7.1', base: 'no', section: 'version_13_7_1_no_pip' } + 'APPLICATION.products.numpy' : {tag: '1.20.3', base: 'no', section: 'version_1_20_3' } + 'APPLICATION.products.meshio' : {tag: '5.3.5' , base: 'no', section: 'version_5_3_5_no_pip' } } { # __condition__ : "VARS.dist in ['UB22.04']" - 'APPLICATION.rm_products' : ['TTK'] # causes crashes - 'APPLICATION.products.cmake' : 'native' # TTK requires cmake > 3.21 - 'APPLICATION.products.opencv' : '3.2.0' - 'APPLICATION.products.cminpack' : 'native' - 'APPLICATION.products.netcdf' : '4.6.2' - 'APPLICATION.products.omniORB' : '4.2.5' - 'APPLICATION.products.omniORBpy' : '4.2.5' - 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_UB22_04' } - 'APPLICATION.products.root' : {tag: '6.22.02', base: 'no', section: 'version_6_22_02_UB22_04' } - 'APPLICATION.products.medfile' : {tag: '4.1.1', base: 'no', section: 'version_4_1_1_UB22_04' } + 'APPLICATION.rm_products' : ['TTK', 'markdown_it_py', 'mdurl'] # causes crashes + 'APPLICATION.products.cmake' : 'native' # TTK requires cmake > 3.21 + 'APPLICATION.products.cftime' : 'native' + 'APPLICATION.products.h5py' : 'native' + 'APPLICATION.products.meshio' : 'native' + 'APPLICATION.products.netCDF4' : 'native' + 'APPLICATION.products.rich' : 'native' + 'APPLICATION.products.cminpack' : 'native' + 'APPLICATION.products.opencv' : '3.2.0' + 'APPLICATION.products.netcdf' : '4.6.2' + 'APPLICATION.products.omniORB' : '4.2.5' + 'APPLICATION.products.omniORBpy' : '4.2.5' + 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_UB22_04' } + 'APPLICATION.products.root' : {tag: '6.22.02', base: 'no', section: 'version_6_22_02_UB22_04' } + 'APPLICATION.products.medfile' : {tag: '4.1.1', base: 'no', section: 'version_4_1_1_UB22_04' } } { # DB10: @@ -248,19 +265,35 @@ __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']" 'APPLICATION.products.opencv' : '3.2.0' 'APPLICATION.products.hdf5' : 'native' 'APPLICATION.products.cminpack' : 'native' + 'APPLICATION.products.mdurl' : {tag: '0.1.2', base: 'no', section: 'version_0_1_2_no_pip' } + 'APPLICATION.products.markdown_it_py' : {tag: '3.0.0', base : 'no', section: 'version_3_0_0_no_pip'} 'APPLICATION.products.PyFMI' : {tag:'2.6', base: 'no', section: 'version_2_6_no_pip'} + 'APPLICATION.products.rich' : 'native' + 'APPLICATION.products.meshio' : {tag:'5.3.5', base: 'no', section: 'version_5_3_5_no_pip'} 'APPLICATION.products.MEDCOUPLING' : {tag:'master', base: 'no', section: 'default_MPI', hpc: 'yes'} + 'APPLICATION.products.numpy' : {tag: '1.20.3', base: 'no', section: 'version_1_20_3' } } { __condition__ : "VARS.dist in ['DB12']" - 'APPLICATION.products.CONFIGURATION' : 'master' 'APPLICATION.products.cmake' : 'native' # TTK requires cmake > 3.21 + 'APPLICATION.products.cftime' : 'native' + 'APPLICATION.products.h5py' : 'native' + 'APPLICATION.products.markdown_it_py' : 'native' + 'APPLICATION.products.mdurl' : 'native' + 'APPLICATION.products.meshio' : 'native' + 'APPLICATION.products.netCDF4' : 'native' + 'APPLICATION.products.rich' : 'native' 'APPLICATION.products.opencv' : {tag: '3.2.0', base: 'no', section: 'version_3_2_0_DB12'} 'APPLICATION.products.cminpack' : 'native' 'APPLICATION.products.root' : {tag: '6.22.02', base: 'no', section: 'version_6_22_02_DB12'} @@ -279,8 +312,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']" @@ -291,9 +329,13 @@ __overwrite__ : 'APPLICATION.products.swig' : '4.0.2' 'APPLICATION.products.opencv' : '3.2.0' 'APPLICATION.products.openmpi' : '4.1.5' + 'APPLICATION.products.sip' : '5.5.0' 'APPLICATION.products.root' : {tag: '6.22.02', base: 'no', section: 'version_6_22_02_CO9' } 'APPLICATION.products.qt' : {tag: '5.12.10', base: 'no', section: 'version_5_12_10_CO9' } - 'APPLICATION.products.sip' : '5.5.0' + 'APPLICATION.products.mdurl' : {tag: '0.1.2', base: 'no', section: 'version_0_1_2_no_pip' } + 'APPLICATION.products.markdown_it_py' : {tag: '3.0.0', base: 'no', section: 'version_3_0_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.5' , base: 'no', section: 'version_5_3_5_no_pip' } 'APPLICATION.products.sphinxintl' : {tag: '0.9.10', base: 'no', section: 'version_0_9_10_no_pip' } 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip' } 'APPLICATION.products.numpydoc' : {tag: '0.9.0', base: 'no', section: 'version_0_9_0_no_pip' } @@ -308,16 +350,23 @@ __overwrite__ : __condition__ : "VARS.dist in ['FD32']" 'APPLICATION.products.opencv' : '3.2.0' 'APPLICATION.products.qwt' : '6.1.4' - 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip' } - 'APPLICATION.products.Sphinx' : {tag: '1.7.6', base: 'no', section: 'version_1_7_6_no_pip' } - 'APPLICATION.products.gdal' : {tag:'2.4.0', base: 'no', section: 'version_2_4_0_FD32' } # spns #29324 + 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip' } + 'APPLICATION.products.Sphinx' : {tag: '1.7.6', base: 'no', section: 'version_1_7_6_no_pip' } + 'APPLICATION.products.gdal' : {tag:'2.4.0', base: 'no', section: 'version_2_4_0_FD32' } # spns #29324 + 'APPLICATION.products.mdurl' : {tag: '0.1.2', base: 'no', section: 'version_0_1_2_no_pip' } + 'APPLICATION.products.numpy' : {tag: '1.20.3', base: 'no', section: 'version_1_20_3' } } { __condition__ : "VARS.dist in ['FD34']" - 'APPLICATION.products.opencv' : '3.2.0' - 'APPLICATION.products.qwt' : '6.1.6' - 'APPLICATION.products.omniORB' : '4.2.5' - 'APPLICATION.products.omniORBpy' : '4.2.5' + 'APPLICATION.products.opencv' : '3.2.0' + 'APPLICATION.products.qwt' : '6.1.6' + 'APPLICATION.products.omniORB' : '4.2.5' + 'APPLICATION.products.omniORBpy' : '4.2.5' + 'APPLICATION.products.mdurl' : {tag: '0.1.2', base: 'no', section: 'version_0_1_2_no_pip' } + 'APPLICATION.products.markdown_it_py' : {tag: '3.0.0', base: 'no', section: 'version_3_0_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.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.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip' } 'APPLICATION.products.root' : {tag:'6.22.02', base: 'no', section: 'version_6_22_02_FD34' } 'APPLICATION.products.gdal' : {tag:'2.4.0', base: 'no', section: 'version_2_4_0_FD34' } # spns #29324 @@ -333,6 +382,11 @@ __overwrite__ : 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip' } 'APPLICATION.products.root' : {tag: '6.22.02', base: 'no', section: 'version_6_22_02_FD36' } 'APPLICATION.products.medfile' : {tag: '4.1.1', base: 'no', section: 'version_4_1_1_FD36' } + 'APPLICATION.products.mdurl' : {tag: '0.1.2', base: 'no', section: 'version_0_1_2_no_pip' } + 'APPLICATION.products.markdown_it_py' : {tag: '3.0.0', base: 'no', section: 'version_3_0_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.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'} } { @@ -353,13 +407,16 @@ __overwrite__ : { __condition__ : "VARS.dist in ['FD38']" 'APPLICATION.rm_products' : ['root', 'URANIE', 'mesa'] + 'APPLICATION.products.markdown_it_py' : 'native' + 'APPLICATION.products.rich' : 'native' 'APPLICATION.products.cmake' : 'native' - 'APPLICATION.products.opencv' : {tag: '3.2.0', base: 'no', section: 'version_3_2_0_FD38' } 'APPLICATION.products.omniORB' : '4.2.5' 'APPLICATION.products.omniORBpy' : '4.2.5' 'APPLICATION.products.qwt' : '6.1.6' 'APPLICATION.products.netcdf' : '4.6.2' 'APPLICATION.products.swig' : '4.0.2' + 'APPLICATION.products.meshio' : {tag: '5.3.5' , base: 'no', section: 'version_5_3_5_no_pip' } + 'APPLICATION.products.opencv' : {tag: '3.2.0', base: 'no', section: 'version_3_2_0_FD38' } 'APPLICATION.products.petsc' : {tag: '3.16.0', base: 'no', section: 'version_3_16_0_FD38' } 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_FD38' } 'APPLICATION.products.medfile' : {tag: '4.1.1', base: 'no', section: 'version_4_1_1_FD38' } diff --git a/applications/SALOME-master-windows.pyconf b/applications/SALOME-master-windows.pyconf index 64bfd01..c5f3828 100644 --- a/applications/SALOME-master-windows.pyconf +++ b/applications/SALOME-master-windows.pyconf @@ -44,6 +44,7 @@ APPLICATION : boost : '1.67.0' CAS : {tag : 'V7_5_3p5', section: 'version_CR753_SALOME_PATCH_win', base: 'no'} certifi : '2019.6.16' + cftime : '1.6.3' cgns : '4.2.0' chardet : '3.0.4' click : '7.0' @@ -68,6 +69,7 @@ APPLICATION : gmsh : '4.10.3' graphviz : '2.44.1' hdf5 : '1.10.3' + h5py : '3.11.0' idna : '2.8' imagesize : '1.1.0' ispc : '1.15.0' @@ -78,13 +80,18 @@ APPLICATION : libpng: '1.5.10' libxml2 : '2.9.1' llvm : '8.0.1-clang-win' + mdurl :'0.1.2' + markdown_it_py : '3.0.0' markupsafe : '1.1.1' matplotlib : '3.3.4' medfile : '4.1.1' mesa : '19.2.3' MeshGems : '2.15-1' + meshio: '5.3.5' metis : '5.1.0' msvc : '2017' + netcdf : '4.6.2' + netCDF4: '1.6.5' netgen : '5.3.1_with_CAS_7.2' # comment out line above and uncomment the line below to use Netgen 6. #netgen : '6.2.2101' @@ -109,7 +116,7 @@ APPLICATION : psutil : '5.9.8' pthreads : '2.9.1' PyFMI : '2.6' - Pygments : '2.4.2' + Pygments : '2.13.0' pyparsing : '2.4.0' PyQt : '5.15.3' pyreadline : '3.4.1' @@ -118,6 +125,7 @@ APPLICATION : qt : '5.12.10' qwt : '6.1.2' requests : '2.22.0' + rich : '13.7.1' rkCommon : '1.5.1' ruby : '2.5.5-1' #scikit_learn: '1.3.2' diff --git a/applications/SALOME-master.pyconf b/applications/SALOME-master.pyconf index 57e68d3..552af72 100644 --- a/applications/SALOME-master.pyconf +++ b/applications/SALOME-master.pyconf @@ -43,6 +43,7 @@ APPLICATION : catalyst: '2.0' C3PO: 'v2.3' certifi : '2018.8.24' + cftime: '1.6.3' cgns : '4.2.0' chardet : '3.0.4' charset_normalizer : '3.3.2' @@ -69,6 +70,7 @@ APPLICATION : gdal : '2.4.0' gmsh : '4.10.3' graphviz : '2.38.0' + h5py : '3.11.0' hdf5 : '1.10.3' idna : '2.7' imagesize : '1.4.1' @@ -81,16 +83,20 @@ APPLICATION : libxml2 : '2.9.12' llvm : '8.0.1-clang' markupsafe : '2.1.5' + markdown_it_py: '3.0.0' matplotlib : '3.8.2' + mdurl: '0.1.2' medfile : '4.1.1' mesa : '19.0.8' MeshGems : '2.15-1' - mpi4py: {tag: '3.1.0', base: 'no', section : 'version_3_1_0_no_pip'} + meshio : '5.3.5' + mpi4py: {tag: '3.1.0', base: 'no', section : 'version_3_1_0_no_pip'} metis : '5.1.0' netgen : '5.3.1_with_CAS_7.2' # comment out line above and uncomment the line below to use Netgen 6. #netgen : '6.2.2101' netcdf : '4.6.2' + netCDF4 : '1.6.5' nlopt : '2.5.0' nose: '1.3.7' numpy : '1.21.1' @@ -122,6 +128,7 @@ APPLICATION : qt : '5.12.10' qwt : '6.1.2' requests : '2.31.0' + rich : '13.7.1' rkCommon : '1.5.1' root: '6.22.02' salome_system : 'native' diff --git a/products/cftime.pyconf b/products/cftime.pyconf new file mode 100644 index 0000000..f2d06de --- /dev/null +++ b/products/cftime.pyconf @@ -0,0 +1,68 @@ +default : +{ + name : "cftime" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + patches : [] + system_info : + { + rpm : [] + rpm_dev : [] + apt : ['python3-cftime'] + apt_dev : [] + } + environ : + { + env_script : "cftime.py" + } + depend : ['Python','setuptools'] + opt_depend: [] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + install_dir : 'base' + properties : + { + incremental : "yes" + pip : "yes" + } +} + +default_win : +{ + depend : ['Python', 'setuptools'] + opt_depend : [] + properties : + { + incremental : "yes" + pip : "yes" + } +} + +version_1_6_3 : +{ +} + +version_1_6_3_no_pip : +{ + compil_script: "cftime.sh" + properties : + { + incremental : "yes" + pip : "no" + } +} + +version_1_6_3_win : +{ + compil_script: "cftime-1.6.3.bat" + archive_info : + { + archive_name : "cftime-1.6.3.tar.gz" + } + properties : + { + incremental : "yes" + pip : "no" + } +} diff --git a/products/compil_scripts/cftime-1.6.3.bat b/products/compil_scripts/cftime-1.6.3.bat new file mode 100644 index 0000000..ec241a6 --- /dev/null +++ b/products/compil_scripts/cftime-1.6.3.bat @@ -0,0 +1,40 @@ +@echo off + +echo ########################################################################## +echo cftime %VERSION% +echo ########################################################################## + +if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL% + +REM clean BUILD directory +if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR% +mkdir %BUILD_DIR%\cache\pip + +cd %BUILD_DIR% + +set HDF5_DIR=%HDF5_ROOT_DIR% +set HDF5_INCDIR=%HDF5_INCLUDE_DIRS% +set HDF5_LIBDIR=%HDF5_LIBRARIES% +set NETCDF4_DIR=%NETCDF_ROOT_DIR% +set NETCDF4_INCDIR=%NETCDF_ROOT_DIR%\include +set NETCDF4_LIBDIR=%NETCDF_ROOT_DIR%\lib + +xcopy %SOURCE_DIR%\* %BUILD_DIR% /E /I /Q +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on xcopy + exit 1 +) + +cd %BUILD_DIR% +%PYTHON_ROOT_DIR%\python.exe setup.py install +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on install cftime-1.6.3 + exit 2 +) + +echo. +echo Product %PRODUCT_NAME% version: %VERSION%> %PRODUCT_INSTALL%\README.txt +echo Installation folder: %PYTHON_ROOT_DIR%>> %PRODUCT_INSTALL%\README.txt + +echo. +echo ########## END 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/h5py-3.11.0.sh b/products/compil_scripts/h5py-3.11.0.sh new file mode 100755 index 0000000..992b129 --- /dev/null +++ b/products/compil_scripts/h5py-3.11.0.sh @@ -0,0 +1,46 @@ +#!/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 + FD32|UB20*) + WHEELS=('h5py-3.11.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl') + ;; + FD34) + WHEELS=('h5py-3.11.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl') + ;; + FD36) + WHEELS=('h5py-3.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_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/h5py-3.9.0.sh b/products/compil_scripts/h5py-3.9.0.sh new file mode 100755 index 0000000..6271dc7 --- /dev/null +++ b/products/compil_scripts/h5py-3.9.0.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +echo "##########################################################################" +echo "h5py" $VERSION +echo "##########################################################################" + +rm -rf $BUILD_DIR +cp -r $SOURCE_DIR $BUILD_DIR + +mkdir -p ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages +export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:${PYTHONPATH} +mkdir -p $PRODUCT_INSTALL +echo + +cd $BUILD_DIR + +echo "*** setup.py BUILD" +python setup.py build + +echo "*** setup.py INSTALL" +python setup.py install --prefix=${PRODUCT_INSTALL} --install-lib ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages +if [ $? -ne 0 ]; then + echo "ERROR on setup" + exit 3 +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/markdown-it-py-2.2.0.sh b/products/compil_scripts/markdown-it-py-2.2.0.sh new file mode 100755 index 0000000..b5a5541 --- /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 --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/markdown-it-py-3.0.0.sh b/products/compil_scripts/markdown-it-py-3.0.0.sh new file mode 100755 index 0000000..0d4310b --- /dev/null +++ b/products/compil_scripts/markdown-it-py-3.0.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-3.0.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/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/mdurl-0.1.2.sh b/products/compil_scripts/mdurl-0.1.2.sh new file mode 100755 index 0000000..dbc1023 --- /dev/null +++ b/products/compil_scripts/mdurl-0.1.2.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.2-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/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/compil_scripts/meshio-5.3.5.bat b/products/compil_scripts/meshio-5.3.5.bat new file mode 100644 index 0000000..457c21c --- /dev/null +++ b/products/compil_scripts/meshio-5.3.5.bat @@ -0,0 +1,28 @@ +@echo off + +echo ########################################################################## +echo meshio %VERSION% +echo ########################################################################## + +if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL% + +REM clean BUILD directory +if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR% +mkdir %BUILD_DIR%\cache\pip + +cd %SOURCE_DIR% +xcopy * %BUILD_DIR%\ /E /I /Q +cd %BUILD_DIR% + +%PYTHON_ROOT_DIR%\python.exe setup.py install +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on python setup.py + exit 3 +) + +echo. +echo Product %PRODUCT_NAME% version: %VERSION%> %PRODUCT_INSTALL%\README.txt +echo Installation folder: %PYTHON_ROOT_DIR%>> %PRODUCT_INSTALL%\README.txt + +echo. +echo ########## END diff --git a/products/compil_scripts/meshio-5.3.5.sh b/products/compil_scripts/meshio-5.3.5.sh new file mode 100755 index 0000000..62bb011 --- /dev/null +++ b/products/compil_scripts/meshio-5.3.5.sh @@ -0,0 +1,30 @@ +#!/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=('typing_extensions-4.11.0-py3-none-any.whl' + 'meshio-5.3.5-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/netCDF4-1.6.5.bat b/products/compil_scripts/netCDF4-1.6.5.bat new file mode 100644 index 0000000..2e1ff33 --- /dev/null +++ b/products/compil_scripts/netCDF4-1.6.5.bat @@ -0,0 +1,40 @@ +@echo off + +echo ########################################################################## +echo netCDF4 %VERSION% +echo ########################################################################## + +if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL% + +REM clean BUILD directory +if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR% +mkdir %BUILD_DIR%\cache\pip + +cd %BUILD_DIR% + +set HDF5_DIR=%HDF5_ROOT_DIR% +set HDF5_INCDIR=%HDF5_INCLUDE_DIRS% +set HDF5_LIBDIR=%HDF5_LIBRARIES% +set NETCDF4_DIR=%NETCDF_ROOT_DIR% +set NETCDF4_INCDIR=%NETCDF_ROOT_DIR%\include +set NETCDF4_LIBDIR=%NETCDF_ROOT_DIR%\lib + +xcopy %SOURCE_DIR%\* %BUILD_DIR% /E /I /Q +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on xcopy + exit 1 +) + +cd %BUILD_DIR% +%PYTHON_ROOT_DIR%\python.exe setup.py install +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on install netcdf-1.6.5 + exit 2 +) + +echo. +echo Product %PRODUCT_NAME% version: %VERSION%> %PRODUCT_INSTALL%\README.txt +echo Installation folder: %PYTHON_ROOT_DIR%>> %PRODUCT_INSTALL%\README.txt + +echo. +echo ########## END diff --git a/products/compil_scripts/netcdf-4.6.2.bat b/products/compil_scripts/netcdf-4.6.2.bat new file mode 100644 index 0000000..fcb1428 --- /dev/null +++ b/products/compil_scripts/netcdf-4.6.2.bat @@ -0,0 +1,83 @@ +@echo off + +echo ########################################################################## +echo netcdf %VERSION% +echo ########################################################################## + +IF NOT DEFINED SAT_DEBUG ( + SET SAT_DEBUG=0 +) + +IF NOT DEFINED CMAKE_GENERATOR ( + SET CMAKE_GENERATOR="Visual Studio 15 2017 Win64" +) + +SET PRODUCT_BUILD_TYPE=Release + +REM TODO: NGH: not Tested yet +if %SAT_DEBUG% == 1 ( + set PRODUCT_BUILD_TYPE=Debug +) + +if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL% + +REM clean BUILD directory +if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR% +mkdir %BUILD_DIR% + +SET CMAKE_OPTIONS= +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE:STRING=%PRODUCT_BUILD_TYPE% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_LIBDIR:STRING=lib +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_EXECUTABLE=%PYTHONBIN% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_NETCDF_4=ON +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_DAP=OFF +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBUILD_UTILITIES=ON +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBUILD_SHARED_LIBS=ON +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_TESTS=OFF + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DLIBXML2_INCLUDE_DIR:STRING=%LIBXML2_ROOT_DIR:\=/%/include +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DLIBXML2_LIBRARIES:STRING=%LIBXML2_ROOT_DIR:\=/%/lib/libxml2.lib +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DLIBXML2_XMLLINT_EXECUTABLE=%LIBXML2_ROOT_DIR:\=/%/bin/xmllint.exe + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DHDF5_DIR:PATH=%HDF5_ROOT_DIR:\=/%/cmake/hdf5 +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DHDF5_INCLUDE_DIRS:PATH=%HDF5_ROOT_DIR:\=/%/include +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DHDF5_USE_STATIC_LIBRARIES:BOOL=OFF +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR=%CMAKE_GENERATOR% +set MSBUILDDISABLENODEREUSE=1 + +echo. +echo ********************************************************************* +echo *** %CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% +echo ********************************************************************* +echo. + +%CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR% +if NOT %ERRORLEVEL% == 0 ( + echo "ERROR on cmake" + exit 1 +) + +echo. +echo ********************************************************************* +echo *** msbuild %MAKE_OPTIONS% /p:Configuration=Release /p:Platform=x64 ALL_BUILD.vcxproj +echo ********************************************************************* +echo. + +msbuild %MAKE_OPTIONS% /p:Configuration=Release /p:Platform=x64 ALL_BUILD.vcxproj +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on msbuild ALL_BUILD.vcxproj + exit 2 +) + +echo. +echo ********************************************************************* +echo *** installation... +echo ********************************************************************* +echo. + +msbuild %MAKE_OPTIONS% /p:Configuration=Release /p:Platform=x64 INSTALL.vcxproj +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on msbuild INSTALL.vcxproj + exit 3 +) diff --git a/products/compil_scripts/numpy-1.20.3.sh b/products/compil_scripts/numpy-1.20.3.sh new file mode 100755 index 0000000..05e370a --- /dev/null +++ b/products/compil_scripts/numpy-1.20.3.sh @@ -0,0 +1,65 @@ +#!/bin/bash + +echo "##########################################################################" +echo "numpy" $VERSION +echo "##########################################################################" + + +mkdir -p $PRODUCT_INSTALL + +cd $SOURCE_DIR +rm -f site.cfg + +if [ "$SAT_lapack_IS_NATIVE" != "1" ]; then + echo "Lapack is embedded... Make numpy aware of it..." + echo "[ALL]" > site.cfg + echo "libraries = lapack,blas,cblas,lapacke,tmglib" >> site.cfg + echo "library_dirs = \$\{LAPACKHOME\}/lib" >> site.cfg + echo "include_dirs = \$\{LAPACKHOME\}/include" >> site.cfg +fi + +export PYTHONPATH=$SOURCE_DIR:$PYTHONPATH + +NUMPY_INSTALL=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages +mkdir -p ${NUMPY_INSTALL} +PYTHONPATH=${NUMPY_INSTALL}:${PYTHONPATH} + +echo +echo "*** setup.py build install" +$PYTHONBIN setup.py build install --prefix=${PRODUCT_INSTALL} --install-lib=${NUMPY_INSTALL} +if [ $? -ne 0 ]; then + echo "ERROR on setup build install" + rm -f site.cfg + exit 1 +fi +# the embedded versioneer.py fails to retrieve the correct version - presumably because of missing .git information +# let's fix this once for all - prevents openturns from not building. +cd ${NUMPY_INSTALL} +if [ -f numpy/_version.py ]; then + echo "INFO: ensure that version is consistently set. In principle patches " + sed -i "s/0+unknown/$VERSION/g" numpy/_version.py +else + f=$(find . -type d -name "numpy-$VERSION-py${PYTHON_VERSION}-*x86_64.egg") + if [ $? -eq 0 ]; then + EGG_DIR=$(ls |grep numpy-$VERSION-py${PYTHON_VERSION} |grep x86_64.egg) + echo "INFO: Found $EGG_DIR" + if [ -d $EGG_DIR/numpy ]; then + ln -sf $EGG_DIR/numpy + sed -i "s/0+unknown/$VERSION/g" $EGG_DIR/numpy/_version.py + else + echo "WARNING: could not find $EGG_DIR/numpy" + fi + else + echo "WARNING: could not find egg directory with name: numpy-$VERSION-py${PYTHON_VERSION}-*-x86_64.egg" + fi +fi + +if [ -d ${PRODUCT_INSTALL}/local/bin ]; then + mv ${PRODUCT_INSTALL}/local/bin ${PRODUCT_INSTALL}/bin + rm -rf ${PRODUCT_INSTALL}/local +fi + +rm -f site.cfg +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/compil_scripts/rich-13.7.1.sh b/products/compil_scripts/rich-13.7.1.sh new file mode 100755 index 0000000..05fdbed --- /dev/null +++ b/products/compil_scripts/rich-13.7.1.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-13.7.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 +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/cftime.py b/products/env_scripts/cftime.py new file mode 100644 index 0000000..f0a27cf --- /dev/null +++ b/products/env_scripts/cftime.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path +import platform + +def set_env(env, prereq_dir, version): + env.set('CFTIME_ROOT_DIR',prereq_dir) + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/h5py.py b/products/env_scripts/h5py.py index 3137f68..ee99a7c 100644 --- a/products/env_scripts/h5py.py +++ b/products/env_scripts/h5py.py @@ -8,8 +8,7 @@ def set_env(env, prereq_dir, version): if not platform.system() == "Windows" : pyver = 'python' + env.get('PYTHON_VERSION') env.set('H5PY_ROOT_DIR',prereq_dir) - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'bin')) - env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages','numpy','core','include')) + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) def set_nativ_env(env): pass diff --git a/products/env_scripts/markdown_it_py.py b/products/env_scripts/markdown_it_py.py new file mode 100644 index 0000000..58e363f --- /dev/null +++ b/products/env_scripts/markdown_it_py.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path +import platform + +def set_env(env, prereq_dir, version): + env.set('MARKDOWN_PY_IT_ROOT_DIR',prereq_dir) + if not platform.system() == "Windows" : + pyver = 'python' + env.get('PYTHON_VERSION') + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/mdurl.py b/products/env_scripts/mdurl.py new file mode 100644 index 0000000..f46b8b1 --- /dev/null +++ b/products/env_scripts/mdurl.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path +import platform + +def set_env(env, prereq_dir, version): + env.set('MDURL_ROOT_DIR',prereq_dir) + if not platform.system() == "Windows" : + pyver = 'python' + env.get('PYTHON_VERSION') + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/meshio.py b/products/env_scripts/meshio.py new file mode 100644 index 0000000..885c6a9 --- /dev/null +++ b/products/env_scripts/meshio.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path +import platform + +def set_env(env, prereq_dir, version): + pyver = 'python' + env.get('PYTHON_VERSION') + env.set('MESHIO_ROOT_DIR',prereq_dir) + env.set('HDF5_DISABLE_VERSION_CHECK', '1') + env.set("MESHIO_VERSION",version) + if not platform.system() == "Windows" : + env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) + env.prepend('PATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages', 'bin')) + else: + # meshio is installed in Python lib directory + # no need to expand PATH + pass + +def set_nativ_env(env): + import meshio + meshio_version=meshio.__version__ + env.set("MESHIO_VERSION",meshio_version) diff --git a/products/env_scripts/netCDF4.py b/products/env_scripts/netCDF4.py new file mode 100644 index 0000000..75e7de6 --- /dev/null +++ b/products/env_scripts/netCDF4.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path +import platform + +def set_env(env, prereq_dir, version): + env.set('NETCDF4_ROOT_DIR',prereq_dir) + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/netcdf.py b/products/env_scripts/netcdf.py index 3105763..88d0383 100644 --- a/products/env_scripts/netcdf.py +++ b/products/env_scripts/netcdf.py @@ -1,12 +1,14 @@ #!/usr/bin/env python import os.path +import platform def set_env(env, prereq_dir, version): env.set('NETCDF_ROOT_DIR', prereq_dir) env.set('NETCDF_INSTALL_DIR', prereq_dir) env.set('NETCDF_VERSION',version) env.prepend('PATH', os.path.join(prereq_dir,'bin')) - env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib')) + if not platform.system() == "Windows" : + env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib')) def set_nativ_env(env): pass diff --git a/products/env_scripts/rich.py b/products/env_scripts/rich.py new file mode 100644 index 0000000..2281c3b --- /dev/null +++ b/products/env_scripts/rich.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path +import platform + +def set_env(env, prereq_dir, version): + env.set('RICH_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/h5py.pyconf b/products/h5py.pyconf index c9fdd6e..cd85a27 100644 --- a/products/h5py.pyconf +++ b/products/h5py.pyconf @@ -7,7 +7,7 @@ default : patches : [] system_info : { - rpm : ["h5py"] + rpm : ["python3-h5py"] rpm_dev : [] apt : ["python3-h5py"] apt_dev : [] @@ -24,6 +24,37 @@ default : properties : { incremental : "yes" - pip : "no" + pip : "yes" } } + +version_3_11_0_no_pip: +{ + compil_script: "h5py-3.11.0" + $VARS.scriptExtension + archive_info : {archive_name : "h5py-3.11.0-x86_64.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + } +} + +version_3_11_0_win: +{ + properties : + { + incremental : "yes" + 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 new file mode 100644 index 0000000..76d70de --- /dev/null +++ b/products/markdown_it_py.pyconf @@ -0,0 +1,75 @@ +default : +{ + name : "markdown-it-py" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + patches : [] + system_info : + { + rpm : ['python3-markdown-it-py'] + rpm_dev : [] + apt : ['python3-markdown-it'] + apt_dev : [] + } + environ : + { + env_script : "markdown_it_py.py" + } + depend : ['Python', 'setuptools', 'mdurl'] + opt_depend: [] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + install_dir : 'base' + properties : + { + incremental : "yes" + pip : "yes" + } +} + +version_3_0_0_no_pip: +{ + compil_script: "markdown-it-py-3.0.0" + $VARS.scriptExtension + archive_info : {archive_name : "markdown-it-py-3.0.0-x86_64.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + } +} + +version_3_0_0: +{} + +version_3_0_0_win: +{ + archive_info : {archive_name : "markdown-it-py-3.0.0.tar.gz"} + properties : + { + incremental : "yes" + 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" + } +} + +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 new file mode 100644 index 0000000..8de90e4 --- /dev/null +++ b/products/mdurl.pyconf @@ -0,0 +1,61 @@ +default : +{ + name : "mdurl" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + patches : [] + system_info : + { + rpm : ['python3-mdurl'] + rpm_dev : [] + apt : ['python3-mdurl'] + apt_dev : [] + } + environ : + { + env_script : "mdurl.py" + } + depend : ['Python', 'setuptools'] + opt_depend: [] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + install_dir : 'base' + properties : + { + incremental : "yes" + pip : "yes" + } +} + +version_0_1_2_no_pip: +{ + compil_script: "mdurl-0.1.2" + $VARS.scriptExtension + archive_info : {archive_name : "mdurl-0.1.2-x86_64.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + } +} + +version_0_1_2_win: +{ + archive_info : {archive_name : "mdurl-0.1.2.tar.gz"} + properties : + { + incremental : "yes" + 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 new file mode 100644 index 0000000..390a75d --- /dev/null +++ b/products/meshio.pyconf @@ -0,0 +1,83 @@ +default : +{ + name : "meshio" + build_source : "script" + compil_script: "meshio" + $VARS.scriptExtension + get_source : "archive" + patches : [] + system_info : + { + rpm : [] + rpm_dev : [] + apt : ['python3-meshio', 'meshio-tools'] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'h5py', 'rich', 'netCDF4'] + opt_depend : ['importlib_metadata'] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + install_dir : 'base' + properties : + { + incremental : "yes" + pip : "yes" + single_install_dir : "no" + } +} + +version_5_3_5_no_pip : +{ + compil_script: "meshio-5.3.5" + $VARS.scriptExtension + archive_info : {archive_name : "meshio-5.3.5-x86_64.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + single_install_dir : "no" + } +} + +version_5_3_5 : +{ +} + +version_5_3_5_win : +{ + compil_script: "meshio-5.3.5.bat" + archive_info : {archive_name : "meshio-5.3.5.tar.gz"} + properties : + { + incremental : "yes" + pip : "no" + single_install_dir : "no" + } + 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" + } +} + +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/netCDF4.pyconf b/products/netCDF4.pyconf new file mode 100644 index 0000000..f82ff06 --- /dev/null +++ b/products/netCDF4.pyconf @@ -0,0 +1,67 @@ +default : +{ + name : "netCDF4" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + patches : [] + system_info : + { + rpm : ['python3-netcdf4'] + rpm_dev : [] + apt : ['python3-netcdf4'] + apt_dev : [] + } + environ : + { + env_script : "netCDF4.py" + } + depend : ['Python', 'setuptools', 'netcdf', 'cftime', 'certifi'] + opt_depend: [] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + install_dir : 'base' + properties : + { + incremental : "yes" + pip : "yes" + } +} + +default_win : +{ + properties : + { + incremental : "yes" + } + depend : ['Python', 'netcdf', 'hdf5', 'cftime'] + opt_depend : [] +} + +version_1_6_5 : +{ +} + +version_1_6_5_no_pip: +{ + compil_script: "netCDF4.sh" + properties : + { + incremental : "yes" + pip : "yes" + } +} + +version_1_6_5_win : +{ + compil_script: "netCDF4-1.6.5.bat" + archive_info : + { + archive_name : "netCDF4-1.6.5.tar.gz" + } + properties : + { + incremental : "yes" + pip : "no" + } +} diff --git a/products/netcdf.pyconf b/products/netcdf.pyconf index 22ea228..4cd3596 100644 --- a/products/netcdf.pyconf +++ b/products/netcdf.pyconf @@ -30,7 +30,8 @@ default_win : { properties : { - single_install_dir : "yes" + single_install_dir : "no" + incremental : "yes" } depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'pthreads'] opt_depend : [] @@ -42,6 +43,15 @@ version_4_6_2: { archive_name : "netcdf-c-4.6.2.tar.gz" } - compil_script : "netcdf-4.6.2.sh" + compil_script : "netcdf-4.6.2" + $VARS.scriptExtension patches : ['netcdf-4.6.2-001.patch'] } + +version_4_6_2_win : +{ + properties : + { + single_install_dir : "yes" + incremental : "yes" + } +} diff --git a/products/numpy.pyconf b/products/numpy.pyconf index d8d9a08..a2786e0 100755 --- a/products/numpy.pyconf +++ b/products/numpy.pyconf @@ -72,6 +72,17 @@ version_1_21_6_win_dbg: } } +version_1_20_3: +{ + properties: + { + incremental : "yes" + pip : "no" + } + compil_script : "numpy-1.20.3.sh" + patches: ['numpy-1.20.3.pO1.patch', 'numpy-1.20.3.pO2.patch', 'numpy-1.20.3.pO3.patch'] +} + version_1_16_4_win_dbg: { name : "numpy" diff --git a/products/patches/h5py-3.9.0.p01.patch b/products/patches/h5py-3.9.0.p01.patch new file mode 100644 index 0000000..939163d --- /dev/null +++ b/products/patches/h5py-3.9.0.p01.patch @@ -0,0 +1,11 @@ +--- h5py-3.9.0_ref/h5py/_errors.pyx 2023-04-26 17:08:31.000000000 +0200 ++++ h5py-3.9.0_dev/h5py/_errors.pyx 2024-05-05 14:40:30.886340118 +0200 +@@ -94,7 +94,7 @@ + H5E_error_t err + int n + +-cdef herr_t walk_cb(unsigned int n, const H5E_error_t *desc, void *e) nogil noexcept: ++cdef herr_t walk_cb(unsigned int n, const H5E_error_t *desc, void *e) nogil: + + cdef err_data_t *ee = e + diff --git a/products/patches/numpy-1.20.3.pO1.patch b/products/patches/numpy-1.20.3.pO1.patch new file mode 100644 index 0000000..b10d8f4 --- /dev/null +++ b/products/patches/numpy-1.20.3.pO1.patch @@ -0,0 +1,11 @@ +--- numpy-1.20.3_ref/pyproject.toml 2021-05-09 12:38:00.000000000 +0200 ++++ numpy-1.20.3_dev/pyproject.toml 2024-05-09 11:50:44.909893215 +0200 +@@ -3,7 +3,7 @@ + requires = [ + "setuptools<49.2.0", + "wheel<=0.35.1", +- "Cython>=0.29.21,<3.0", # Note: keep in sync with tools/cythonize.py ++ "Cython>=0.29.0,<3.0", # Note: keep in sync with tools/cythonize.py + ] + + diff --git a/products/patches/numpy-1.20.3.pO2.patch b/products/patches/numpy-1.20.3.pO2.patch new file mode 100644 index 0000000..bea9616 --- /dev/null +++ b/products/patches/numpy-1.20.3.pO2.patch @@ -0,0 +1,11 @@ +--- numpy-1.20.3_ref/tools/cythonize.py 2021-05-09 12:38:00.000000000 +0200 ++++ numpy-1.20.3_dev/tools/cythonize.py 2024-05-09 11:49:05.948073244 +0200 +@@ -70,7 +70,7 @@ + # other fixes in the 0.29 series that are needed even for earlier + # Python versions. + # Note: keep in sync with that in pyproject.toml +- required_version = LooseVersion('0.29.21') ++ required_version = LooseVersion('0.29.0') + + if LooseVersion(cython_version) < required_version: + raise RuntimeError(f'Building {VENDOR} requires Cython >= {required_version}') diff --git a/products/patches/numpy-1.20.3.pO3.patch b/products/patches/numpy-1.20.3.pO3.patch new file mode 100644 index 0000000..f6ba88d --- /dev/null +++ b/products/patches/numpy-1.20.3.pO3.patch @@ -0,0 +1,11 @@ +--- numpy-1.20.3_ref/numpy/core/tests/test_cython.py 2021-05-08 20:35:28.000000000 +0200 ++++ numpy-1.20.3_dev/numpy/core/tests/test_cython.py 2024-05-09 11:49:05.796070449 +0200 +@@ -19,7 +19,7 @@ + # other fixes in the 0.29 series that are needed even for earlier + # Python versions. + # Note: keep in sync with the one in pyproject.toml +- required_version = LooseVersion("0.29.21") ++ required_version = LooseVersion("0.29.0") + if LooseVersion(cython_version) < required_version: + # too old or wrong cython, skip the test + cython = None diff --git a/products/rich.pyconf b/products/rich.pyconf new file mode 100644 index 0000000..39db5f7 --- /dev/null +++ b/products/rich.pyconf @@ -0,0 +1,70 @@ +default : +{ + name : "rich" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + patches : [] + system_info : + { + rpm : ['python3-rich'] + rpm_dev : [] + apt : ['python3-rich'] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'Pygments'] + opt_depend: ['markdown_it_py'] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + install_dir : 'base' + properties : + { + incremental : "yes" + pip : "yes" + } +} + +version_13_7_1_no_pip: +{ + compil_script: "rich-13.7.1" + $VARS.scriptExtension + archive_info : + { + archive_name : "rich-13.7.1-x86_64.tar.gz" + } + properties : + { + incremental : "yes" + pip : "no" + } +} + +version_13_7_1 : +{} + +version_13_7_1_win : +{ + depend : ['Python', 'numpy', 'hdf5', 'h5py', 'markdown_it_py', 'Pygments'] + properties : + { + incremental : "yes" + 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" + } +} diff --git a/products/salome_system.pyconf b/products/salome_system.pyconf index 7cf4ccd..5a5923a 100644 --- a/products/salome_system.pyconf +++ b/products/salome_system.pyconf @@ -52,7 +52,7 @@ default : } "FD32" : { - rpm : ["lz4", "gsl", "openmpi", "netcdf", "gdal", "libxml++"] + rpm : ["lz4", "gsl", "openmpi", "netcdf", "python3-netcdf4", "gdal", "libxml++"] rpm_dev : ["perl-interpreter", "qt5-devel", "gsl-devel", "openmpi-devel", "netcdf-devel", "protobuf-devel", "python3-protobuf", "texlive-dvipng", "libxml++-devel"] } "FD34" : @@ -105,7 +105,7 @@ default : { apt : ["libdc1394-25", "libopenexr-3-1-30", "libwebp7", "libgfortran5", "libevent-2.1-7", "libpng16-16", "libgcc", "libffi8", "libtinfo6", "libgphoto2-port12", "libglx0", "libopengl0", "libzstd1", "libglvnd0", "libjsoncpp25", - "openmpi-bin", "libnetcdf19", "libgdal32", "libtbb12", "python3-setuptools", "libxml++2.6-2v5"] + "openmpi-bin", "libnetcdf19", "libgdal32", "libtbb12", "python3-setuptools", "libxml++2.6-2v5", "liblzf1"] apt_dev : ["libtbb-dev", "cython3", "libfftw3-dev", "libopenblas-dev", "qttools5-dev", "libqt5svg5-dev", "libqt5x11extras5-dev", "qtxmlpatterns5-dev-tools", "libopenmpi-dev", "libpng-dev", "libtiff5-dev", "libgeotiff-dev", "libjpeg-dev", "libgif-dev", "libgeos-dev", "libsqlite3-dev", "libnetcdf-dev", "libgdal-dev", @@ -128,7 +128,7 @@ default : { apt : ["libdc1394-22", "libopenexr24", "libwebp6", "libgfortran5", "libilmbase24", "libevent-2.1-7", "libpng16-16", "libgcc-9-dev", "libffi7", "libtinfo6", "libgphoto2-port12", "libglx0", "libopengl0", "libzstd1", "libglvnd0", "openmpi-bin", "libgdal26", "libopenblas0-serial", "libtbb2", - "libxml++2.6-2v5"] + "libxml++2.6-2v5", "python3-netcdf4"] apt_dev : ["libtbb-dev", "cython3", "libfftw3-dev", "libopenblas-dev", "qttools5-dev", "libqt5svg5-dev", "libqt5x11extras5-dev", "qtxmlpatterns5-dev-tools", "libopenmpi-dev", "libpng-dev", "libtiff5-dev", "libgeotiff-dev", "libjpeg-dev", "libgif-dev", "libgeos-dev", "libsqlite3-dev", "libgdal-dev", "dvipng", "libxml++2.6-dev"]