# comment out line above and uncomment the line below to use Netgen 6.
#netgen : '6.2.2101'
netcdf : 'native'
- nlopt : '2.4.2'
+ nlopt : 'native'
nose: 'native'
numpy : 'native'
numpydoc : 'native'
'APPLICATION.rm_products' : ['TTK'] # causes crashes
'APPLICATION.products.cmake' : 'native' # TTK requires cmake > 3.21
'APPLICATION.products.opencv' : '3.2.0'
- 'APPLICATION.products.nlopt' : '2.5.0'
'APPLICATION.products.cminpack' : 'native'
'APPLICATION.products.netcdf' : '4.6.2'
'APPLICATION.products.omniORB' : '4.2.5'
'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.nlopt' : '2.5.0'
'APPLICATION.products.ParaView' : {tag: '5.11.0', base: 'no', section: 'version_5_11_0_MPI_DB12', hpc: 'yes' }
}
{
__condition__ : "VARS.dist in ['CO8']"
'APPLICATION.products.sphinxintl' : {tag: '0.9.10', base: 'no', section: 'version_0_9_10_no_pip' }
'APPLICATION.products.cminpack' : '1.3.6'
+ 'APPLICATION.products.nlopt' : '2.4.2'
+ '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' } # spns #29324
}
{
__condition__ : "VARS.dist in ['CO9']"
+ 'APPLICATION.products.nlopt' : '2.4.2'
'APPLICATION.products.cminpack' : '1.3.6'
'APPLICATION.products.qwt' : '6.1.2'
'APPLICATION.products.PyQt' : '5.15.3'
'APPLICATION.products.omniORB' : '4.2.5'
'APPLICATION.products.omniORBpy' : '4.2.5'
'APPLICATION.products.qwt' : '6.1.6'
- 'APPLICATION.products.nlopt' : '2.6.0'
'APPLICATION.products.netcdf' : '4.6.2'
'APPLICATION.products.numpy' : {tag: '1.22.2', base: 'no', section: 'version_1_22_2' }
'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_no_pip' }
'APPLICATION.products.omniORB' : '4.2.5'
'APPLICATION.products.omniORBpy' : '4.2.5'
'APPLICATION.products.qwt' : '6.1.6'
- 'APPLICATION.products.nlopt' : '2.6.0'
'APPLICATION.products.netcdf' : '4.6.2'
'APPLICATION.products.numpy' : {tag: '1.22.2', base: 'no', section: 'version_1_22_2' }
'APPLICATION.products.PyFMI' : {tag: '2.6', base: 'no', section: 'version_2_6_FD37' }
'APPLICATION.products.omniORB' : '4.2.5'
'APPLICATION.products.omniORBpy' : '4.2.5'
'APPLICATION.products.qwt' : '6.1.6'
- 'APPLICATION.products.nlopt' : '2.6.0'
'APPLICATION.products.netcdf' : '4.6.2'
'APPLICATION.products.swig' : '4.0.2'
'APPLICATION.products.petsc' : {tag: '3.16.0', base: 'no', section: 'version_3_16_0_FD38' }
{
__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'}
}
{
__condition__ : "VARS.dist in ['CO8']"
'APPLICATION.rm_products' : ['gcc', 'gmp', 'mpc', 'mpfr', 'zeromq']
'APPLICATION.products.gdal' : {tag:'2.4.0', base: 'no', section: 'version_2_4_0_CO8' } # spns #29324
+ 'APPLICATION.products.openturns' : {tag:'1.22', base:'no', section:'version_1_22_CO8'}
'APPLICATION.products.ParaView' : {tag: '5.11.0', base: 'no', section: 'version_5_11_0_MPI_CO8', hpc: 'yes'}
}
{
}
{
__condition__ : "VARS.dist in ['DB09']"
+ 'APPLICATION.products.openturns' : {tag:'1.22', base:'no', section:'version_1_22_DB09'}
'APPLICATION.products.MEDCOUPLING' : {tag:'master', base: 'no', section: 'default_MPI', hpc: 'yes'}
}
{
echo "openturns" $VERSION
echo "##########################################################################"
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
export PATH=$(pwd)/bin:$PATH
export PYTHONPATH=$(pwd):$PYTHONPATH
CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release"
CMAKE_OPTIONS+=" -DPYTHON_EXECUTABLE=${PYTHONBIN}"
+if [ "$SAT_Python_IS_NATIVE" == "1" ] && [ "$LINUX_DISTRIBUTION" == "CO8" ] ; then
+ CMAKE_OPTIONS+=" -DPython_EXECUTABLE=${PYTHONBIN}"
+fi
+
if [ -n "$SWIG_ROOT_DIR" ] && [ "$SAT_swig_IS_NATIVE" != "1" ]; then
CMAKE_OPTIONS+=" -DSWIG_EXECUTABLE=${SWIG_ROOT_DIR}/bin/swig"
fi
fi
# https://github.com/persalys/persalys/issues/745
-LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
case $LINUX_DISTRIBUTION in
UB22*|CO8*|CO9*|FD36|FD37|FD38)
echo "WARNING: switching OFF TBB support"
## nlopt
if [ -n "$NLOPT_ROOT_DIR" ] && [ "$SAT_nlopt_IS_NATIVE" != "1" ]; then
- CMAKE_OPTIONS+=" -DNLOPT_INCLUDE_DIRS:STRING=${NLOPT_ROOT_DIR}/include"
- CMAKE_OPTIONS+=" -DNLOPT_LIBRARIES:STRING=${NLOPT_ROOT_DIR}/lib"
+ CMAKE_OPTIONS+=" -DNLOPT_INCLUDE_DIR:STRING=${NLOPT_ROOT_DIR}/include"
+ CMAKE_OPTIONS+=" -DNLOPT_LIBRARY:STRING=${NLOPT_ROOT_DIR}/lib/libnlopt.so"
CMAKE_OPTIONS+=" -DNLOPT_DIR:STRING=${NLOPT_ROOT_DIR}"
fi
${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip $SOURCE_DIR/dill-0.3.4/dill-0.3.4-py2.py3-none-any.whl --no-deps
if [ $? -ne 0 ]
then
- echo "FATAL: could not install dikk-0.3.4"
+ echo "FATAL: could not install dill-0.3.4"
exit 5
fi
elif [[ $k == "otpod" ]]; then
env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
def set_nativ_env(env):
- pass
+ prereq_dir='/usr'
+ prereq_bin='/usr/bin'
+ prereq_inc='/usr/include'
+ try:
+ import distro
+ if any(distribution in distro.name().lower() for distribution in ["rocky", "centos", "fedora"]) :
+ prereq_dir='/usr/'
+ prereq_bin='/usr/bin'
+ prereq_inc='/usr/include'
+ elif any(distribution in distro.name().lower() for distribution in ["debian", "ubuntu"]) :
+ prereq_dir='/usr'
+ prereq_inc='/usr/include'
+ except:
+ import platform
+ if any(distribution in platform.linux_distribution()[0].lower() for distribution in ["rocky", "centos", "fedora"]) :
+ prereq_dir='/usr'
+ prereq_bin='/usr/bin'
+ prereq_inc='/usr/include'
+
+ env.set('NLOPT_ROOT_DIR', prereq_dir)
+ env.set('NLOPT_INCLUDE_DIR', prereq_inc)
+ if prereq_bin != "/usr/bin":
+ env.prepend('PATH', prereq_bin)
+ env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir,'lib'))
build_source : "script"
compil_script : $name + $VARS.scriptExtension
get_source : "archive"
+ system_info :
+ {
+ rpm : ["NLopt"]
+ rpm_dev : ["NLopt-devel"]
+ apt : ["libnlopt0","libnlopt-cxx0"]
+ apt_dev : ["libnlopt-dev","libnlopt-cxx-dev" ]
+ }
environ :
{
env_script : $name + ".py"
opt_depend : ['pandas', 'statsmodels', 'patsy']
}
+version_1_22_CO7 :
+{
+ compil_script : "openturns-1.22.sh"
+ patches : ['openturns-1.22.0001.patch']
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'cminpack', 'FMILibrary', 'PyFMI', 'boost']
+ opt_depend : ['pandas', 'statsmodels', 'patsy']
+}
+
+version_1_22_CO7 :
+{
+ compil_script : "openturns-1.22.sh"
+ patches : ['openturns-1.22.0001.patch']
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'cminpack', 'FMILibrary', 'PyFMI', 'boost']
+ opt_depend : ['pandas', 'statsmodels', 'patsy']
+}
+
+version_1_22_CO8 :
+{
+ compil_script : "openturns-1.22.sh"
+ patches : ['openturns-1.22.0001.patch']
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'cminpack', 'FMILibrary', 'PyFMI', 'boost']
+ opt_depend : ['pandas', 'statsmodels', 'patsy']
+}
+
+version_1_22_DB09 :
+{
+ compil_script : "openturns-1.22.sh"
+ patches : ['openturns-1.22.0001.patch']
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'cminpack', 'FMILibrary', 'PyFMI', 'boost']
+ opt_depend : ['pandas', 'statsmodels', 'patsy']
+}
+
version_1_22_win :
{
name : "OT"
--- /dev/null
+diff -Naur -Naur openturns/openturns-1.22/CMakeLists.txt openturns_dev/openturns-1.22/CMakeLists.txt
+--- openturns/openturns-1.22/CMakeLists.txt 2024-04-03 11:52:49.000000000 +0000
++++ openturns_dev/openturns-1.22/CMakeLists.txt 2024-04-05 08:17:28.143471039 +0000
+@@ -129,6 +129,10 @@
+ find_package (LAPACK REQUIRED)
+ endif ()
+ list (APPEND OPENTURNS_PRIVATE_LIBRARIES ${LAPACK_LIBRARIES})
++IF (DEFINED CBLAS_LIBRARIES)
++ MESSAGE(STATUS "CBLAS_LIBRARIES is defined... adding to the list of libraries ${CBLAS_LIBRARIES}")
++ LIST (APPEND OPENTURNS_PRIVATE_LIBRARIES ${CBLAS_LIBRARIES})
++ENDIF()
+
+ if (USE_SPECTRA)
+ find_package (Spectra 1.0 CONFIG)