From: Nabil Ghodbane Date: Wed, 4 Sep 2024 20:37:17 +0000 (+0200) Subject: bos #42835: Implement BasicIterativeStatistics support in SAT X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=321c9b34ed23650098dd0acccf43906bde2771a9;p=tools%2Fsat_salome.git bos #42835: Implement BasicIterativeStatistics support in SAT --- diff --git a/applications/SALOME-master-native.pyconf b/applications/SALOME-master-native.pyconf index 72497a9..4ecee1c 100644 --- a/applications/SALOME-master-native.pyconf +++ b/applications/SALOME-master-native.pyconf @@ -38,6 +38,7 @@ APPLICATION : alabaster : 'native' assimulo : '3.5.2' Babel : 'native' + BasicIterativeStatistics : 'v0.1.0' boost : 'native' CAS : {tag : 'CR780-SALOME-PATCH', section: 'version_CR780_SALOME_PATCH', base: 'no'} catalyst: '2.0' @@ -111,11 +112,15 @@ APPLICATION : Pillow : 'native' planegcs : '0.18-3cb6890' psutil : 'native' + poetry : '1.8.3' + poetry_core : '1.9.0' + pyyaml: 'native' PyFMI : '2.6' Pygments : 'native' pyparsing : 'native' PyQt : 'native' pyreadline : 'native' + pytest : 'native' Python : 'native' pytz : 'native' qt : 'native' @@ -223,6 +228,7 @@ __overwrite__ : 'APPLICATION.products.netcdf' : '4.6.2' 'APPLICATION.products.qt' : '5.15.2' 'APPLICATION.products.qwt' : '6.1.6' + 'APPLICATION.products.poetry' : {tag: '1.5.1', base: 'no', section: 'version_1_5_1_x86_64' } 'APPLICATION.products.PyQt' : '5.15.3' 'APPLICATION.products.sip' : '5.5.0' 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip' } @@ -291,6 +297,9 @@ __overwrite__ : 'APPLICATION.products.opencv' : '3.2.0' 'APPLICATION.products.cminpack' : 'native' 'APPLICATION.products.hdf5' : 'native' + 'APPLICATION.products.pytest' : '8.1.1' + 'APPLICATION.products.poetry_core' : '1.6.1' + 'APPLICATION.products.poetry' : {tag: '1.5.1', base: 'no', section: 'version_1_5_1_x86_64' } 'APPLICATION.products.PyFMI' : {tag:'2.6', base: 'no', section: 'version_2_6_no_pip' } 'APPLICATION.products.qt' : '5.15.2' 'APPLICATION.products.qwt' : '6.1.6' @@ -312,6 +321,8 @@ __overwrite__ : 'APPLICATION.products.opencv' : '3.2.0' 'APPLICATION.products.hdf5' : 'native' 'APPLICATION.products.cminpack' : 'native' + 'APPLICATION.products.pytest' : '8.1.1' + 'APPLICATION.products.pyyaml' : {tag: '6.0', base: 'no', section: 'version_6_0_x86_64' } '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'} @@ -336,6 +347,7 @@ __overwrite__ : 'APPLICATION.products.swig' : '4.0.2' 'APPLICATION.products.tbb' : '2021.9.0' 'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_DB12' } + 'APPLICATION.products.poetry' : {tag: '1.5.1', base: 'no', section: 'version_1_5_1_x86_64' } 'APPLICATION.products.ParaView' : {tag: '5.11.0', base: 'no', section: 'version_5_11_0_MPI_DB12', hpc: 'yes' } } { @@ -402,6 +414,8 @@ __overwrite__ : '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.YACS' : {tag: 'master', base: 'no', section: 'version_master_FD32' } + 'APPLICATION.products.poetry_core' : {tag: '1.9.0', base: 'no', section: 'version_1_9_0_x86_64' } + 'APPLICATION.products.poetry' : {tag: '1.5.1', base: 'no', section: 'version_1_5_1_x86_64' } } { __condition__ : "VARS.dist in ['FD34']" diff --git a/applications/SALOME-master-windows.pyconf b/applications/SALOME-master-windows.pyconf index 1e8be28..24aca7e 100644 --- a/applications/SALOME-master-windows.pyconf +++ b/applications/SALOME-master-windows.pyconf @@ -7,7 +7,7 @@ APPLICATION : workdir : $LOCAL.workdir + $VARS.sep + $APPLICATION.name cmake_generator : 'Visual Studio 15 2017' cmake_build_type: 'Release' # Debug, RelWithDebInfo, Release, MinSizeRel - tag : 'master' + tag : 'master' dev : 'no' verbose : 'no' debug : 'no' @@ -41,7 +41,9 @@ APPLICATION : { # PREREQUISITES : alabaster : '0.7.16' + attrs : '24.2.0' Babel : '2.7.0' + BasicIterativeStatistics : 'v0.1.0' boost : '1.67.0' CAS : {tag:'CR780-SALOME-PATCH', section:'version_CR780_SALOME_PATCH_win', base: 'no'} certifi : '2019.6.16' @@ -62,6 +64,7 @@ APPLICATION : doxygen : '1.8.3.1' eigen : '3.3.4' embree : '3.12.2' + exceptiongroup : '1.2.2' expat : '2.0.1' f2c : '1.0.0' fftw: '3.3.9' @@ -74,6 +77,7 @@ APPLICATION : h5py : '3.11.0' idna : '2.8' imagesize : '1.1.0' + iniconfig : '2.0.0' ispc : '1.15.0' Jinja2 : '2.10.1' kiwisolver : '1.4.5' @@ -115,6 +119,10 @@ APPLICATION : perl : '5.28.1.1' Pillow : '10.2.0' planegcs : '0.18-3cb6890' + pluggy : '1.5.0' + poetry_core : '1.9.0' + pyyaml: '6.0' + pytest : '8.3.2' psutil : '5.9.8' pthreads : '2.9.1' PyFMI : '2.6' @@ -150,6 +158,7 @@ APPLICATION : swig : '4.0.2' tbb : '2019_U8_win' toml : '0.10.2' + tomli : '2.0.1' tcltk : '8.6.9' urllib3 : '1.25.3' zlib : '1.2.5' diff --git a/applications/SALOME-master.pyconf b/applications/SALOME-master.pyconf index 7e26585..c608332 100644 --- a/applications/SALOME-master.pyconf +++ b/applications/SALOME-master.pyconf @@ -37,6 +37,7 @@ APPLICATION : # PREREQUISITES : alabaster : '0.7.6' Babel : '2.14.0' + BasicIterativeStatistics : 'v0.1.0' boost : '1.71.0' CAS : {tag : 'CR780-SALOME-PATCH', section: 'version_CR780_SALOME_PATCH', base: 'no'} catalyst: '2.0' @@ -116,12 +117,16 @@ APPLICATION : petsc : {tag : '3.16.0', base: 'no', section: 'version_3_16_0', hpc: 'yes'} Pillow : '8.4.0' planegcs : '0.18-3cb6890' + poetry : '1.8.3' + poetry_core : '1.9.0' + pyyaml: '6.0' psutil : '5.9.8' PyFMI : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip'} Pygments : '2.17.2' pyparsing : '3.1.1' PyQt : '5.15.3' pyreadline : '2.0' + pytest : '8.1.1' Python : '3.9.14' pytz : '2017.2' qt : '5.15.2' @@ -245,6 +250,8 @@ __overwrite__ : __condition__ : "VARS.dist in ['CO7']" 'APPLICATION.rm_products' : ['gcc', 'gmp', 'mpc', 'mpfr'] 'APPLICATION.products.openturns' : {tag:'1.22', base:'no', section:'version_1_22_CO7'} + 'APPLICATION.products.pyyaml' : {tag: '6.0', base: 'no', section: 'version_6_0_x86_64' } + 'APPLICATION.products.poetry' : {tag: '1.8.3', base: 'no', section: 'version_1_8_3_x86_64' } } { __condition__ : "VARS.dist in ['CO8']" diff --git a/products/BasicIterativeStatistics.pyconf b/products/BasicIterativeStatistics.pyconf new file mode 100644 index 0000000..236d4cd --- /dev/null +++ b/products/BasicIterativeStatistics.pyconf @@ -0,0 +1,44 @@ +default : +{ + name : "BasicIterativeStatistics" + build_source : "script" + compil_script : "BasicIterativeStatistics" + $VARS.scriptExtension + get_source : "git" + git_info: + { + repositories : + { + github : "https://github.com/IterativeStatistics/BasicIterativeStatistics.git" + } + } + environ : + { + env_script: $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'pyyaml', 'openturns', 'poetry_core', 'pytest'] + opt_depend: ['poetry'] + patches : [] + 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 : "no" + } +} + +default_win : +{ + properties : + { + incremental : "yes" + pip : "no" + single_install_dir: 'no' + } +} + +version_v0_1_0: +{ + patches: ['basicIterativeStatistics-pyver.patch'] +} diff --git a/products/C3PO.pyconf b/products/C3PO.pyconf index 04f8bcc..4e6a7ea 100644 --- a/products/C3PO.pyconf +++ b/products/C3PO.pyconf @@ -19,7 +19,7 @@ default : "MEDCOUPLING", "medfile" ] - opt_depend: ["openmpi", "mpi4py"] + opt_depend: ["openmpi", "mpi4py", "pytest"] build_depend : ["cmake", "swig", "cppunit"] source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name @@ -35,6 +35,7 @@ version_v2_3 : compil_script : "C3PO-v2.3.sh" patches: ['C3PO-v2.3-0001.patch', 'C3PO-v2.3-0002.patch'] } + version_v2_0 : { patches: ['C3PO-v2.0.patch'] diff --git a/products/MEDCOUPLING.pyconf b/products/MEDCOUPLING.pyconf index a4f9014..3f7000e 100644 --- a/products/MEDCOUPLING.pyconf +++ b/products/MEDCOUPLING.pyconf @@ -34,7 +34,7 @@ default : "CONFIGURATION" ] build_depend : ["cmake", "swig", "doxygen", "graphviz", "cppunit"] - opt_depend : [] + opt_depend : ["BasicIterativeStatistics"] source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name properties: @@ -92,7 +92,7 @@ default_MPI : "CONFIGURATION", "openmpi" ] - opt_depend : ["ParMetis", "metis"] + opt_depend : ["ParMetis", "metis", "BasicIterativeStatistics"] } default_MPI_STD: @@ -119,7 +119,7 @@ default_MPI_STD: "openmpi", "sphinx_rtd_theme" ] - opt_depend : ["ParMetis"] + opt_depend : ["ParMetis", "BasicIterativeStatistics"] } version_micro: diff --git a/products/attrs.pyconf b/products/attrs.pyconf new file mode 100644 index 0000000..58fe5cb --- /dev/null +++ b/products/attrs.pyconf @@ -0,0 +1,27 @@ +default : +{ + name : "attrs" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + system_info : + { + rpm : ["python3-attrs"] + rpm_dev : [] + apt : ["python3-attrs"] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'openturns', 'Cython', 'pluggy'] + 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" + } +} diff --git a/products/build.pyconf b/products/build.pyconf new file mode 100644 index 0000000..6b20242 --- /dev/null +++ b/products/build.pyconf @@ -0,0 +1,27 @@ +default : +{ + name : "build" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + system_info : + { + rpm : ["python3-build"] + rpm_dev : [] + apt : ["python3-build"] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'openturns', 'Cython', 'poetry_core'] + 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" + } +} diff --git a/products/compil_scripts/BasicIterativeStatistics.bat b/products/compil_scripts/BasicIterativeStatistics.bat new file mode 100644 index 0000000..0e33f8c --- /dev/null +++ b/products/compil_scripts/BasicIterativeStatistics.bat @@ -0,0 +1,31 @@ +@echo off + +echo ########################################################################## +echo BasicIterativeStatistics %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% + +REM Ensure that BasicIterativeStatistics is not present. +%PYTHON_ROOT_DIR%\python.exe -m pip uninstall -y iterative_stats + +%PYTHON_ROOT_DIR%\python.exe -m pip install --cache-dir=%BUILD_DIR%\cache\pip . --no-deps --no-build-isolation +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on python -m pip install + 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/BasicIterativeStatistics.sh b/products/compil_scripts/BasicIterativeStatistics.sh new file mode 100755 index 0000000..a8e53ae --- /dev/null +++ b/products/compil_scripts/BasicIterativeStatistics.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +echo "##########################################################################" +echo "BasicIterativeStatistics" $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + +echo $PYTHONPATH|tr ':' '\n'|grep -E 'poetry|pyyaml' +mkdir -p ${PRODUCT_INSTALL} + +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR +cp -R $SOURCE_DIR/* . + +echo + +echo "*** ${PYTHONBIN} -m pip install . --prefix=${PRODUCT_INSTALL}" +${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL --no-build-isolation +if [ $? -ne 0 ] ; then + echo "Error on pip install" + exit 1 +fi + +if [ -d ${PRODUCT_INSTALL}/local ];then + mv ${PRODUCT_INSTALL}/local/* ${PRODUCT_INSTALL} + rm -rf ${PRODUCT_INSTALL}/local +fi + +if [ -d ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ]; then + mv ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/C3PO-v2.3.sh b/products/compil_scripts/C3PO-v2.3.sh index 6a244e9..773f5a0 100755 --- a/products/compil_scripts/C3PO-v2.3.sh +++ b/products/compil_scripts/C3PO-v2.3.sh @@ -16,7 +16,7 @@ if ! ${PYTHONBIN} -m pip install . --prefix="${PRODUCT_INSTALL}" --cache-dir="${ exit 2 fi -if [ "${SAT_Python_IS_NATIVE}" == "1" ]; then +if [ "${SAT_Python_IS_NATIVE}" == "1" ] && [ "$PYTEST_ROOT_DIR" != "" ]; then PYTEST=$(which pytest) fi diff --git a/products/compil_scripts/poetry-1.5.1.sh b/products/compil_scripts/poetry-1.5.1.sh new file mode 100755 index 0000000..216cba5 --- /dev/null +++ b/products/compil_scripts/poetry-1.5.1.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +echo "##########################################################################" +echo "poetry " $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" +echo "*** check installation" +export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH +export PATH=${PRODUCT_INSTALL}/bin:$PATH +mkdir -p ${PRODUCT_INSTALL} +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR + +USE_WHEELS=true +export WHEELS=('poetry-1.5.1-py3-none-any.whl') +for WHEEL in "${WHEELS[@]}"; do + echo $WHELL + ${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}/lib/python$PYTHON_VERSION/site-packages/bin ];then + mv ${PRODUCT_INSTALL}/lib/python$PYTHON_VERSION/site-packages/bin* ${PRODUCT_INSTALL}/bin +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/poetry-1.8.3.sh b/products/compil_scripts/poetry-1.8.3.sh new file mode 100755 index 0000000..6bab7ef --- /dev/null +++ b/products/compil_scripts/poetry-1.8.3.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +echo "##########################################################################" +echo "poetry " $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" +echo "*** check installation" +export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH +export PATH=${PRODUCT_INSTALL}/bin:$PATH +mkdir -p ${PRODUCT_INSTALL} +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR + +USE_WHEELS=true +case $LINUX_DISTRIBUTION in + DB10|UB20*|CO7) + export WHEELS=('poetry-1.8.3-py3-none-any.whl') + ;; + *) + exit 1 + ;; +esac +if $USE_WHEELS == true ; then + for WHEEL in "${WHEELS[@]}"; do + echo $WHELL + ${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 +else + echo "Not implemented" +fi +if [ -d ${PRODUCT_INSTALL}/lib/python3.7/site-packages/bin ];then + mv ${PRODUCT_INSTALL}/lib/python3.7/site-packages/bin* ${PRODUCT_INSTALL}/bin +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/poetry.sh b/products/compil_scripts/poetry.sh new file mode 100755 index 0000000..78b1539 --- /dev/null +++ b/products/compil_scripts/poetry.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +echo "##########################################################################" +echo "poetry " $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" +echo "*** check installation" +export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH +export PATH=${PRODUCT_INSTALL}/bin:$PATH +mkdir -p ${PRODUCT_INSTALL} +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR +cp -R $SOURCE_DIR/* . + +echo "*** ${PYTHONBIN} -m pip install . --prefix=${PRODUCT_INSTALL}" +${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --prefix=$PRODUCT_INSTALL --no-build-isolation -vvv +if [ $? -ne 0 ] ; then + echo "Error on pip install" + exit 1 +fi + +if [ -d ${PRODUCT_INSTALL}/local ];then + mv ${PRODUCT_INSTALL}/local/* ${PRODUCT_INSTALL} + rm -rf ${PRODUCT_INSTALL}/local +fi + +if [ -d ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ]; then + mv ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/poetry_core-1.9.0.sh b/products/compil_scripts/poetry_core-1.9.0.sh new file mode 100755 index 0000000..cd06f5c --- /dev/null +++ b/products/compil_scripts/poetry_core-1.9.0.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +echo "##########################################################################" +echo "poetry_core " $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" +echo "*** check installation" +export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH +export PATH=${PRODUCT_INSTALL}/bin:$PATH +mkdir -p ${PRODUCT_INSTALL} +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR + +export WHEELS=('poetry_core-1.9.0-py3-none-any.whl') +for WHEEL in "${WHEELS[@]}"; do + echo $WHELL + ${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}/lib/python$PYTHON_VERSION/site-packages/bin ];then + mv ${PRODUCT_INSTALL}/lib/python$PYTHON_VERSION/site-packages/bin* ${PRODUCT_INSTALL}/bin +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/poetry_core.sh b/products/compil_scripts/poetry_core.sh new file mode 100755 index 0000000..2fbcb75 --- /dev/null +++ b/products/compil_scripts/poetry_core.sh @@ -0,0 +1,33 @@ +#!/bin/bash +echo "##########################################################################" +echo "poetry_core " $VERSION +echo "##########################################################################" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" +echo "*** check installation" +export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH +export PATH=${PRODUCT_INSTALL}/bin:$PATH +mkdir -p ${PRODUCT_INSTALL} +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR/cache/pip +cd $BUILD_DIR +cp -R $SOURCE_DIR/* . + +echo "*** ${PYTHONBIN} -m pip install . --prefix=${PRODUCT_INSTALL}" +${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --prefix=$PRODUCT_INSTALL --no-build-isolation -vvv +if [ $? -ne 0 ] ; then + echo "Error on pip install" + exit 1 +fi + +if [ -d ${PRODUCT_INSTALL}/local ];then + mv ${PRODUCT_INSTALL}/local/* ${PRODUCT_INSTALL} + rm -rf ${PRODUCT_INSTALL}/local +fi + +if [ -d ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ]; then + mv ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/pytest.bat b/products/compil_scripts/pytest.bat new file mode 100644 index 0000000..6ca08de --- /dev/null +++ b/products/compil_scripts/pytest.bat @@ -0,0 +1,31 @@ +@echo off + +echo ########################################################################## +echo pytest %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% + +REM Ensure that pytest is not present. +%PYTHON_ROOT_DIR%\python.exe -m pip uninstall -y pytest + +%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/pytest.sh b/products/compil_scripts/pytest.sh new file mode 100755 index 0000000..d852ba6 --- /dev/null +++ b/products/compil_scripts/pytest.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +echo "##########################################################################" +echo "pytest $VERSION" +echo "##########################################################################" + +rm -rf "${BUILD_DIR}" +mkdir "${BUILD_DIR}" +cd "${BUILD_DIR}" || { echo "cd ${BUILD_DIR} fails"; exit 1; } +cp -r "${SOURCE_DIR}"/* . + + +if [ "${SAT_Python_IS_NATIVE}" == "1" ]; then + PYTEST=$(which pytest) +fi + +if [ "${SAT_Python_IS_NATIVE}" != "1" ] || [ -z "${PYTEST}" ]; then + echo + echo "*** install with $PYTHONBIN -m pip install . --cache-dir=${BUILD_DIR}/cache/pip" + ${PYTHONBIN} -m pip install . --prefix=$PRODUCT_INSTALL --cache-dir=$BUILD_DIR/cache/pip -vvv + if [ $? -ne 0 ]; then + echo "pip install pytest fails" + echo 3 + fi +fi + +if [ -d ${PRODUCT_INSTALL}/local ];then + mv ${PRODUCT_INSTALL}/local/* ${PRODUCT_INSTALL} + rm -rf ${PRODUCT_INSTALL}/local +fi + +if [ -d ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ]; then + mv ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/pyyaml-6.0.sh b/products/compil_scripts/pyyaml-6.0.sh new file mode 100755 index 0000000..ff792e0 --- /dev/null +++ b/products/compil_scripts/pyyaml-6.0.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +echo "##########################################################################" +echo "pyyaml " $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 +USE_WHEELS=true +case $LINUX_DISTRIBUTION in + DB11|CO7) + export WHEELS=('PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl') + ;; + *) + exit 1 + ;; +esac +if $USE_WHEELS == true ; then + for WHEEL in "${WHEELS[@]}"; do + echo $WHELL + ${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 +else + echo "Not implemented" +fi + +echo +echo "########## END" diff --git a/products/compil_scripts/pyyaml.sh b/products/compil_scripts/pyyaml.sh new file mode 100755 index 0000000..225cac3 --- /dev/null +++ b/products/compil_scripts/pyyaml.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +echo "##########################################################################" +echo "pyyaml " $VERSION +echo "##########################################################################" + +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR +cd $BUILD_DIR +cp -R $SOURCE_DIR/* . + +echo +echo "*** ${PYTHONBIN} -m pip install . --prefix=${PRODUCT_INSTALL}" +if ! ${PYTHONBIN} -m pip install . --prefix=${PRODUCT_INSTALL} -vvv --no-deps; then + echo "Error on pip install" +fi + +if [ -d ${PRODUCT_INSTALL}/local ];then + mv ${PRODUCT_INSTALL}/local/* ${PRODUCT_INSTALL} + rm -rf ${PRODUCT_INSTALL}/local +fi + +if [ -d ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ]; then + mv ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages +fi + +echo +echo "########## END" diff --git a/products/env_scripts/BasicIterativeStatistics.py b/products/env_scripts/BasicIterativeStatistics.py new file mode 100644 index 0000000..c85abff --- /dev/null +++ b/products/env_scripts/BasicIterativeStatistics.py @@ -0,0 +1,17 @@ +#!/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('BASICITERATIVESTATISTICS_ROOT_DIR',prereq_dir) + env.set("BASICITERATIVESTATISTICS_VERSION",version) + if not platform.system() == "Windows" : + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) + else: + pass + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/attrs.py b/products/env_scripts/attrs.py new file mode 100644 index 0000000..268814a --- /dev/null +++ b/products/env_scripts/attrs.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path, platform + +def set_env(env, prereq_dir, version): + env.set("ATTRS_ROOT_DIR",prereq_dir) + + versionPython = env.get('PYTHON_VERSION') + if not platform.system() == "Windows" : + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages')) + env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'bin')) + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/build.py b/products/env_scripts/build.py new file mode 100644 index 0000000..587ea3c --- /dev/null +++ b/products/env_scripts/build.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path, platform + +def set_env(env, prereq_dir, version): + env.set("BUILDPY_ROOT_DIR",prereq_dir) + + versionPython = env.get('PYTHON_VERSION') + if not platform.system() == "Windows" : + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages')) + env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'bin')) + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/exceptiongroup.py b/products/env_scripts/exceptiongroup.py new file mode 100644 index 0000000..cfee035 --- /dev/null +++ b/products/env_scripts/exceptiongroup.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path, platform + +def set_env(env, prereq_dir, version): + env.set("EXCEPTIONGROUP_ROOT_DIR",prereq_dir) + + versionPython = env.get('PYTHON_VERSION') + if not platform.system() == "Windows" : + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages')) + env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'bin')) + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/iniconfig.py b/products/env_scripts/iniconfig.py new file mode 100644 index 0000000..508f925 --- /dev/null +++ b/products/env_scripts/iniconfig.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path, platform + +def set_env(env, prereq_dir, version): + env.set("INICONFIG_ROOT_DIR",prereq_dir) + + versionPython = env.get('PYTHON_VERSION') + if not platform.system() == "Windows" : + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages')) + env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'bin')) + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/pluggy.py b/products/env_scripts/pluggy.py new file mode 100644 index 0000000..6352037 --- /dev/null +++ b/products/env_scripts/pluggy.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path, platform + +def set_env(env, prereq_dir, version): + env.set("PLUGGY_ROOT_DIR",prereq_dir) + + versionPython = env.get('PYTHON_VERSION') + if not platform.system() == "Windows" : + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages')) + env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'bin')) + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/poetry.py b/products/env_scripts/poetry.py new file mode 100644 index 0000000..ae22492 --- /dev/null +++ b/products/env_scripts/poetry.py @@ -0,0 +1,18 @@ +#!/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('POETRY_ROOT_DIR',prereq_dir) + env.set("POETRY_VERSION",version) + if not platform.system() == "Windows" : + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) + env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + else: + pass + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/poetry_core.py b/products/env_scripts/poetry_core.py new file mode 100644 index 0000000..523aaae --- /dev/null +++ b/products/env_scripts/poetry_core.py @@ -0,0 +1,18 @@ +#!/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('POETRY_CORE_ROOT_DIR',prereq_dir) + env.set("POETRY_CORE_VERSION",version) + if not platform.system() == "Windows" : + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages', 'poetry')) + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) + else: + pass + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/pytest.py b/products/env_scripts/pytest.py new file mode 100644 index 0000000..154d3f3 --- /dev/null +++ b/products/env_scripts/pytest.py @@ -0,0 +1,18 @@ +#!/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('PYTEST_ROOT_DIR',prereq_dir) + env.set("PYTEST_VERSION",version) + if not platform.system() == "Windows" : + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) + env.append('PATH',os.path.join(prereq_dir,'bin')) + else: + pass + +def set_nativ_env(env): + pass diff --git a/products/env_scripts/pyyaml.py b/products/env_scripts/pyyaml.py new file mode 100644 index 0000000..208d14b --- /dev/null +++ b/products/env_scripts/pyyaml.py @@ -0,0 +1,17 @@ +#!/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('PYYAML_ROOT_DIR',prereq_dir) + env.set("PYYAML_VERSION",version) + if not platform.system() == "Windows" : + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) + else: + pass + +def set_nativ_env(env): + pass diff --git a/products/exceptiongroup.pyconf b/products/exceptiongroup.pyconf new file mode 100644 index 0000000..2afaae3 --- /dev/null +++ b/products/exceptiongroup.pyconf @@ -0,0 +1,27 @@ +default : +{ + name : "exceptiongroup" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + system_info : + { + rpm : [] + rpm_dev : [] + apt : [] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'openturns', 'Cython', 'pluggy'] + 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" + } +} diff --git a/products/iniconfig.pyconf b/products/iniconfig.pyconf new file mode 100644 index 0000000..029c5f8 --- /dev/null +++ b/products/iniconfig.pyconf @@ -0,0 +1,27 @@ +default : +{ + name : "iniconfig" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + system_info : + { + rpm : ["python3-iniconfig"] + rpm_dev : [] + apt : ["python3-iniconfig"] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'openturns', 'Cython', 'pluggy'] + 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" + } +} diff --git a/products/patches/basicIterativeStatistics-pyver.patch b/products/patches/basicIterativeStatistics-pyver.patch new file mode 100644 index 0000000..9c85a17 --- /dev/null +++ b/products/patches/basicIterativeStatistics-pyver.patch @@ -0,0 +1,13 @@ +diff --git a/pyproject.toml b/pyproject.toml +index 7e857b7..f4f0362 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -12,7 +12,7 @@ classifiers = [ + ] + + [tool.poetry.dependencies] +-python = ">=3.8,<3.11" ++python = ">=3.7,<3.13" + pyyaml = "6.0" + numpy = "^1.19.0" + diff --git a/products/pluggy.pyconf b/products/pluggy.pyconf new file mode 100644 index 0000000..7142c5f --- /dev/null +++ b/products/pluggy.pyconf @@ -0,0 +1,27 @@ +default : +{ + name : "pluggy" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + system_info : + { + rpm : ["python3-pluggy"] + rpm_dev : [] + apt : ["python3-pluggy"] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'openturns', 'Cython'] + 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" + } +} diff --git a/products/poetry.pyconf b/products/poetry.pyconf new file mode 100644 index 0000000..46fd183 --- /dev/null +++ b/products/poetry.pyconf @@ -0,0 +1,51 @@ +default : +{ + name : "poetry" + build_source : "script" + compil_script: "poetry" + $VARS.scriptExtension + get_source : "archive" + archive_info : {archive_name : $name + "-" + $APPLICATION.products.poetry + ".tar.gz"} + patches : [] + system_info : + { + rpm : [] + rpm_dev : [] + apt : [] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'openturns', 'Cython', 'pyyaml', 'pytest', 'poetry_core'] + opt_depend : ['build'] + 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 : "no" + } +} + +default_win: +{ + properties: + { + incremental : "yes" + pip : "yes" + } +} + +version_1_5_1_x86_64: +{ + compil_script: "poetry-1.5.1.sh" + archive_info : {archive_name : "poetry-1.5.1-x86_64.tar.gz"} +} + +version_1_8_3_x86_64: +{ + compil_script: "poetry-1.8.3.sh" + archive_info : {archive_name : "poetry-1.8.3-x86_64.tar.gz"} +} diff --git a/products/poetry_core.pyconf b/products/poetry_core.pyconf new file mode 100644 index 0000000..4611bfe --- /dev/null +++ b/products/poetry_core.pyconf @@ -0,0 +1,44 @@ +default : +{ + name : "poetry_core" + build_source : "script" + compil_script: "poetry_core" + $VARS.scriptExtension + get_source : "archive" + archive_info : {archive_name : $name + "-" + $APPLICATION.products.poetry_core + ".tar.gz"} + patches : [] + system_info : + { + rpm : [] + rpm_dev : [] + apt : [] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'openturns', 'Cython', 'pyyaml', 'pytest'] + 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 : "no" + } +} + +default_win: +{ + properties: + { + incremental : "yes" + pip : "yes" + } +} + +version_1_9_0_x86_64: +{ + compil_script: "poetry_core-1.9.0.sh" + archive_info : {archive_name : "poetry-1.9.0-x86_64.tar.gz"} +} diff --git a/products/pytest.pyconf b/products/pytest.pyconf new file mode 100644 index 0000000..89b5a12 --- /dev/null +++ b/products/pytest.pyconf @@ -0,0 +1,39 @@ +default : +{ + name : "pytest" + build_source : "script" + compil_script: "pytest" + $VARS.scriptExtension + get_source : "archive" + archive_info : {archive_name : $name + "-" + $APPLICATION.products.pytest + ".tar.gz"} + patches : [] + system_info : + { + rpm : [] + rpm_dev : [] + apt : ['python3-pytest'] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'openturns', 'Cython'] + 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 : "no" + } +} + +default_win : +{ + properties : + { + incremental : "yes" + pip : "yes" + } + depend : ['Python', 'setuptools', 'numpy', 'openturns', 'Cython', 'iniconfig', 'exceptiongroup', 'tomli'] +} diff --git a/products/pyyaml.pyconf b/products/pyyaml.pyconf new file mode 100644 index 0000000..fd33a96 --- /dev/null +++ b/products/pyyaml.pyconf @@ -0,0 +1,44 @@ +default : +{ + name : "pyyaml" + build_source : "script" + compil_script: "pyyaml" + $VARS.scriptExtension + get_source : "archive" + archive_info : {archive_name : $name + "-" + $APPLICATION.products.pyyaml + ".tar.gz"} + patches : [] + system_info : + { + rpm : [] + rpm_dev : [] + apt : ['python3-yaml'] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'numpy', 'openturns', 'Cython'] + 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 : "no" + } +} + +default_win: +{ + properties: + { + incremental : "yes" + pip : "yes" + } +} + +version_6_0_x86_64: +{ + compil_script: "pyyaml-6.0.sh" + archive_info : {archive_name : "pyyaml-6.0-x86_64.tar.gz"} +}