]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
bos #42835: Implement BasicIterativeStatistics support in SAT
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 4 Sep 2024 20:37:17 +0000 (22:37 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 4 Sep 2024 20:37:17 +0000 (22:37 +0200)
20 files changed:
applications/SALOME-master-native.pyconf
products/BasicIterativeStatistics.pyconf [new file with mode: 0644]
products/C3PO.pyconf
products/MEDCOUPLING.pyconf
products/compil_scripts/BasicIterativeStatistics.sh [new file with mode: 0755]
products/compil_scripts/C3PO-v2.3.sh
products/compil_scripts/poetry.sh [new file with mode: 0755]
products/compil_scripts/poetry_core.sh [new file with mode: 0755]
products/compil_scripts/pytest.sh [new file with mode: 0755]
products/compil_scripts/pyyaml-6.0.sh [new file with mode: 0755]
products/compil_scripts/pyyaml.sh [new file with mode: 0755]
products/env_scripts/BasicIterativeStatistics.py [new file with mode: 0644]
products/env_scripts/poetry.py [new file with mode: 0644]
products/env_scripts/poetry_core.py [new file with mode: 0644]
products/env_scripts/pytest.py [new file with mode: 0644]
products/env_scripts/pyyaml.py [new file with mode: 0644]
products/poetry.pyconf [new file with mode: 0644]
products/poetry_core.pyconf [new file with mode: 0644]
products/pytest.pyconf [new file with mode: 0644]
products/pyyaml.pyconf [new file with mode: 0644]

index 72497a9477a3e2a16590757c04a0fb9ce29af896..a975578ec71b033886fe24ff431d46439c94115d 100644 (file)
@@ -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 :  '8.1.1'
         Python : 'native'
         pytz : 'native'
         qt : 'native'
@@ -312,6 +317,7 @@ __overwrite__ :
         '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'}
diff --git a/products/BasicIterativeStatistics.pyconf b/products/BasicIterativeStatistics.pyconf
new file mode 100644 (file)
index 0000000..1b0475f
--- /dev/null
@@ -0,0 +1,28 @@
+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"
+    }
+}
index 04f8bcc0b6971f5fa2c5aa7f60081a341097da98..4e6a7ea63f6f13c3ae18e33340ea6c29d1d5788d 100644 (file)
@@ -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']
index a4f9014324f55402c54843639aefff723fc9f010..3f7000e29f35eea278cb7e8a4b135cf0ec8b3084 100644 (file)
@@ -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/compil_scripts/BasicIterativeStatistics.sh b/products/compil_scripts/BasicIterativeStatistics.sh
new file mode 100755 (executable)
index 0000000..f3a2fe1
--- /dev/null
@@ -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 -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"
index 6a244e9abe505477378402542b82a9096e0281c1..773f5a083bec7fff5a90eb1dc98705c316cc3cb6 100755 (executable)
@@ -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.sh b/products/compil_scripts/poetry.sh
new file mode 100755 (executable)
index 0000000..b967f6e
--- /dev/null
@@ -0,0 +1,60 @@
+#!/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"
diff --git a/products/compil_scripts/poetry_core.sh b/products/compil_scripts/poetry_core.sh
new file mode 100755 (executable)
index 0000000..2fbcb75
--- /dev/null
@@ -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.sh b/products/compil_scripts/pytest.sh
new file mode 100755 (executable)
index 0000000..303d1de
--- /dev/null
@@ -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
+    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 (executable)
index 0000000..c98217a
--- /dev/null
@@ -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)
+       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 (executable)
index 0000000..225cac3
--- /dev/null
@@ -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 (file)
index 0000000..c85abff
--- /dev/null
@@ -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/poetry.py b/products/env_scripts/poetry.py
new file mode 100644 (file)
index 0000000..ae22492
--- /dev/null
@@ -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 (file)
index 0000000..523aaae
--- /dev/null
@@ -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 (file)
index 0000000..154d3f3
--- /dev/null
@@ -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 (file)
index 0000000..208d14b
--- /dev/null
@@ -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/poetry.pyconf b/products/poetry.pyconf
new file mode 100644 (file)
index 0000000..a00ddb0
--- /dev/null
@@ -0,0 +1,29 @@
+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"
+    }
+}
diff --git a/products/poetry_core.pyconf b/products/poetry_core.pyconf
new file mode 100644 (file)
index 0000000..0fb195d
--- /dev/null
@@ -0,0 +1,29 @@
+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"
+    }
+}
diff --git a/products/pytest.pyconf b/products/pytest.pyconf
new file mode 100644 (file)
index 0000000..0759126
--- /dev/null
@@ -0,0 +1,29 @@
+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"
+    }
+}
diff --git a/products/pyyaml.pyconf b/products/pyyaml.pyconf
new file mode 100644 (file)
index 0000000..87d4a6b
--- /dev/null
@@ -0,0 +1,35 @@
+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"}
+}