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'
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 : '8.1.1'
Python : 'native'
pytz : 'native'
qt : 'native'
'APPLICATION.products.opencv' : '3.2.0'
'APPLICATION.products.hdf5' : 'native'
'APPLICATION.products.cminpack' : 'native'
+ 'APPLICATION.products.pyyaml' : {tag: '6.0', base: 'no', section: 'version_6_0_DB11' }
'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'}
--- /dev/null
+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', 'pytest']
+ 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"
+ }
+}
"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
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']
"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:
"CONFIGURATION",
"openmpi"
]
- opt_depend : ["ParMetis", "metis"]
+ opt_depend : ["ParMetis", "metis", "BasicIterativeStatistics"]
}
default_MPI_STD:
"openmpi",
"sphinx_rtd_theme"
]
- opt_depend : ["ParMetis"]
+ opt_depend : ["ParMetis", "BasicIterativeStatistics"]
}
version_micro:
--- /dev/null
+#!/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 -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"
exit 2
fi
-if [ "${SAT_Python_IS_NATIVE}" == "1" ]; then
+if [ "${SAT_Python_IS_NATIVE}" == "1" ] && [ "$PYTEST_ROOT_DIR" != "" ]; then
PYTEST=$(which pytest)
fi
--- /dev/null
+#!/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"
+
+# USE_WHEELS=true
+# case $LINUX_DISTRIBUTION in
+# DB11)
+# 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
+
+# echo
+# echo "########## END"
--- /dev/null
+#!/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"
--- /dev/null
+#!/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
+ 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"
--- /dev/null
+#!/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)
+ 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"
--- /dev/null
+#!/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"
--- /dev/null
+#!/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
--- /dev/null
+#!/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
--- /dev/null
+#!/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
--- /dev/null
+#!/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
--- /dev/null
+#!/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
--- /dev/null
+zdefault :
+{
+ 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']
+ 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"
+ }
+}
--- /dev/null
+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"
+ }
+}
--- /dev/null
+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 : ['pytho3-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"
+ }
+}
--- /dev/null
+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', 'libyaml']
+ apt_dev : ['libyaml-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"
+ }
+}
+
+version_6_0_DB11:
+{
+ compil_script: "pyyaml-6.0.sh"
+ archive_info : {archive_name : "pyyaml-6.0-x86_64.tar.gz"}
+}