--- /dev/null
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+
+APPLICATION :
+{
+ name : 'MEDCOUPLING-9.7.0-MPI-int32'
+ workdir : $LOCAL.workdir + $VARS.sep + $APPLICATION.name + '-' + $VARS.dist
+ tag : 'V9_7_0'
+ base : 'no'
+ debug : 'no'
+ python3 : 'yes'
+ environ :
+ {
+ build : {CONFIGURATION_ROOT_DIR : $workdir + $VARS.sep + "SOURCES" + $VARS.sep + "CONFIGURATION"}
+ launch : {PYTHONIOENCODING:"UTF_8"}
+ }
+ products :
+ {
+ # PREREQUISITES :
+ alabaster : '0.7.6'
+ Babel : '2.7.0'
+ boost : '1.58.0'
+ certifi : '2018.8.24'
+ click : '6.7'
+ cmake : '3.12.1'
+ cppunit : '1.13.2'
+ chardet : '3.0.4'
+ Cython : '0.25.2'
+ docutils : '0.12'
+ doxygen : '1.8.14'
+ graphviz : '2.38.0'
+ hdf5 : {tag : '1.10.3', hpc : 'yes'}
+ idna : '2.7'
+ imagesize : '1.0.0'
+ Jinja2 : '2.7.3'
+ lapack : '3.8.0'
+ libxml2 : '2.9.1'
+ markupsafe : '0.23'
+ medfile : {tag : '4.1.0', hpc : 'yes', section : 'default_Autotools' }
+ mpi4py: '3.0.3'
+ numpy : '1.15.1'
+ openmpi : '3.1.6'
+ ParMetis : '3.1.1'
+ pockets : '0.6.2'
+ Pygments : '2.0.2'
+ pyparsing : '2.0.3'
+ Python : '3.6.5'
+ pytz : '2015.7'
+ requests : '2.19.1'
+ scipy : '0.19.1'
+ scotch : '6.0.4'
+ setuptools : '38.4.0'
+ six : '1.10.0'
+ snowballstemmer : '1.2.1'
+ Sphinx : '1.7.6'
+ sphinxcontrib_napoleon : '0.6.1'
+ sphinxcontrib_websupport : '1.1.0'
+ sphinxintl: '0.9.10'
+ swig : '3.0.12'
+ packaging : '17.1'
+ urllib3 : '1.23'
+
+ # SALOME MODULES :
+ 'CONFIGURATION'
+ 'MEDCOUPLING' : {section : 'default_32BIT_IDS_MPI'}
+ }
+ test_base :
+ {
+ name : "SALOME"
+ tag : "SalomeV9"
+ }
+ properties :
+ {
+ repo_dev : "yes"
+ pip : 'yes'
+ pip_install_dir : 'python'
+ single_install_dir : "no"
+ }
+}
+__overwrite__ :
+[
+ {
+ __condition__ : "VARS.dist in ['FD32']"
+ 'APPLICATION.products.scipy' : '1.5.2' # gcc https://github.com/scipy/scipy/issues/11611 - either patch numpy to include -fallow-argument-mismatch or move to that version
+ }
+]
--- /dev/null
+default :
+{
+ name : "FMILibrary"
+ build_source : "cmake"
+ cmake_options : " -DFMILIB_GENERATE_DOXYGEN_DOC=OFF"
+ get_source : "archive"
+ environ :
+ {
+ env_script : $name + ".py"
+ }
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib']
+ build_depend : ["cmake", "swig"]
+ opt_depend : ['openmpi']
+ 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 :
+ {
+ single_install_dir : "no"
+ incremental : "yes"
+ }
+}
+
+default_win :
+{
+ compil_script : 'pip_install' + $VARS.scriptExtension
+ properties :
+ {
+ single_install_dir : "yes"
+ incremental : "yes"
+ pip : "yes"
+ }
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'pthreads']
+ opt_depend : []
+}
+
+version_2_0_3 :
+{
+ patches : ['FMILibrary-2.0.3-installdir.patch']
+}
\ No newline at end of file
cmake_options : ' -DMEDCOUPLING_ENABLE_PYTHON=ON -DMEDCOUPLING_ENABLE_PARTITIONER=OFF -DMEDCOUPLING_ENABLE_RENUMBER=ON -DMEDCOUPLING_PARTITIONER_METIS=ON -DMEDCOUPLING_PARTITIONER_SCOTCH=OFF -DMEDCOUPLING_PARTITIONER_PARMETIS=OFF -DMEDCOUPLING_MICROMED=OFF -DMEDCOUPLING_USE_MPI=OFF '
}
+default_32BIT_IDS_MPI :
+{
+ cmake_options : "-DMEDCOUPLING_ENABLE_PYTHON=ON -DMEDCOUPLING_ENABLE_PARTITIONER=OFF -DMEDCOUPLING_ENABLE_RENUMBER=ON -DMEDCOUPLING_PARTITIONER_METIS=OFF -DMEDCOUPLING_PARTITIONER_SCOTCH=ON -DMEDCOUPLING_PARTITIONER_PARMETIS=ON -DMEDCOUPLING_MICROMED=OFF -DMEDCOUPLING_USE_MPI=ON -DSALOME_USE_MPI=ON -DMEDCOUPLING_USE_64BIT_IDS=OFF -DCMAKE_CXX_COMPILER=${MPI_ROOT_DIR}/bin/mpicxx -DCMAKE_CC_COMPILER=${MPI_ROOT_DIR}/bin/mpicc"
+ depend : [
+ "boost",
+ "cppunit",
+ "Python",
+ "hdf5",
+ "medfile",
+ "scotch",
+ "ParMetis",
+ "docutils",
+ "libxml2",
+ "Sphinx",
+ "sphinxintl",
+ "setuptools",
+ "six",
+ "pytz",
+ "numpy",
+ "scipy",
+ "lapack",
+ "CONFIGURATION",
+ "openmpi"
+ ]
+}
+
version_V9_5_0 :
{
cmake_options : "-DMEDCOUPLING_ENABLE_PYTHON=ON -DMEDCOUPLING_ENABLE_PARTITIONER=ON -DMEDCOUPLING_ENABLE_RENUMBER=ON -DMEDCOUPLING_PARTITIONER_METIS=ON -DMEDCOUPLING_PARTITIONER_SCOTCH=ON -DMEDCOUPLING_PARTITIONER_PARMETIS=OFF -DMEDCOUPLING_MICROMED=OFF -DMEDCOUPLING_USE_MPI=OFF"
--- /dev/null
+default :
+{
+ name : "PyFMI"
+ 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", "FMILibrary"]
+ 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"
+ }
+}
--- /dev/null
+default :
+{
+ name : "cminpack"
+ build_source : "cmake"
+ cmake_options : " -DUSE_BLAS=ON -DUSE_FPIC=ON -DBUILD_SHARED_LIBS=ON"
+ compil_script : $name + $VARS.scriptExtension
+ get_source : "archive"
+ environ :
+ {
+ env_script : $name + ".py"
+ }
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib']
+ build_depend : ["cmake", "swig"]
+ opt_depend : ['openmpi']
+ 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 :
+ {
+ single_install_dir : "no"
+ incremental : "yes"
+ }
+}
+
+version_1_3_6 :
+{
+ patches : ['cminpack-1.3.6-cblas.patch']
+}
\ No newline at end of file
--- /dev/null
+#!/usr/bin/env python
+import os.path
+
+def set_env(env, prereq_dir, version):
+ env.set('FMILIBRARY_ROOT_DIR', prereq_dir)
+ env.set('FMIL_HOME',prereq_dir)
+ env.prepend('PATH', os.path.join(prereq_dir,'bin'))
+ env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib'))
+
+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):
+ env.set('PYFMI_ROOT_DIR', prereq_dir)
+
+def set_nativ_env(env):
+ pass
--- /dev/null
+#!/usr/bin/env python
+import os.path
+
+def set_env(env, prereq_dir, version):
+ env.set('CMINPACK_ROOT_DIR', prereq_dir)
+ env.prepend('PATH', os.path.join(prereq_dir,'bin'))
+ env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib'))
+
+def set_nativ_env(env):
+ pass
import os.path
def set_env(env, prereq_dir, version):
- env.set('OPENTURN_ROOT_DIR', prereq_dir)
+ env.set('OPENTURNS_ROOT_DIR', prereq_dir)
env.prepend('PATH', os.path.join(prereq_dir,'bin'))
env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib'))
pyver = 'python' + env.get('PYTHON_VERSION')
--- /dev/null
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+
+import os.path, platform
+
+def set_env(env, prereq_dir, version):
+ env.set("PANDAS_ROOT_DIR",prereq_dir)
+ versionPython = env.get('PYTHON_VERSION')
+ if platform.system() == "Windows" :
+ pass
+ else :
+ env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages'))
+
+def set_nativ_env(env):
+ pass
+
build_source : "script"
compil_script : $name + "CMake.sh"
get_source : "archive"
+ system_info :
+ {
+ rpm : []
+ rpm_dev : ["hdf5-devel"]
+ apt : []
+ apt_dev : ["libhdf5-dev"]
+ }
environ :
{
env_script : $name + ".py"
--- /dev/null
+default :
+{
+ name : "pandas"
+ build_source : "script"
+ compil_script : 'pip_install' + $VARS.scriptExtension
+ get_source : "archive"
+ system_info :
+ {
+ rpm : ["python3-pandas"]
+ rpm_dev : []
+ apt : ["python3-pandas"]
+ apt_dev : []
+ }
+ environ :
+ {
+ env_script : $name + ".py"
+ }
+ depend : ['Python', 'setuptools', 'Cython', 'dateutil']
+ 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"
+ }
+}
--- /dev/null
+diff -Naur FMILibrary-2.0.3_ref/CMakeLists.txt FMILibrary-2.0.3_new/CMakeLists.txt
+--- FMILibrary-2.0.3_ref/CMakeLists.txt 2017-09-13 08:13:54.000000000 +0200
++++ FMILibrary-2.0.3_new/CMakeLists.txt 2021-08-30 14:32:32.100995247 +0200
+@@ -26,7 +26,7 @@
+ set(FMILIBRARYBUILD ${FMILibrary_BINARY_DIR})
+
+ # User configuration options and parameters
+-SET(FMILIB_INSTALL_PREFIX ${FMILibrary_BINARY_DIR}/../install CACHE PATH "Prefix prepended to install directories")
++SET(FMILIB_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Prefix prepended to install directories")
+ set(FMILIB_THIRDPARTYLIBS ${FMILibrary_SOURCE_DIR}/ThirdParty CACHE PATH "Path to the ThirdParty library dir" )
+ set(FMILIB_FMI_STANDARD_HEADERS ${FMILIB_THIRDPARTYLIBS}/FMI/default CACHE PATH "Path to the FMI standard headers dir" )
+
--- /dev/null
+diff -Naur cminpack-1.3.6_ref/CMakeLists.txt cminpack-1.3.6_dev/CMakeLists.txt
+--- cminpack-1.3.6_ref/CMakeLists.txt 2017-02-24 16:09:31.000000000 +0100
++++ cminpack-1.3.6_dev/CMakeLists.txt 2021-08-30 14:02:27.425683737 +0200
+@@ -69,12 +69,23 @@
+
+ # Link with a BLAS library if requested
+ if (USE_BLAS)
++ SET(LAPACK_ROOT_DIR $ENV{LAPACK_ROOT_DIR} CACHE PATH "Path to the LAPACK.")
++ IF(LAPACK_ROOT_DIR)
++ LIST(APPEND CMAKE_PREFIX_PATH "${LAPACK_ROOT_DIR}")
++ ENDIF(LAPACK_ROOT_DIR)
+ if (NOT BUILD_SHARED_LIBS)
+ set(BLA_STATIC True)
+ endif()
+ find_package(BLAS)
+ if (BLAS_FOUND)
+- target_link_libraries(cminpack PUBLIC ${BLAS_LIBRARIES})
++ MESSAGE(STATUS "Searching for C-BLAS library...")
++ FIND_LIBRARY(CBLAS_LIBRARIES NAMES cblas
++ HINTS ${LAPACK_ROOT_DIR}
++ PATH_SUFFIXES lib
++ PATHS ${LAPACK_ROOT_DIR}
++ )
++
++ target_link_libraries(cminpack PUBLIC ${BLAS_LIBRARIES} ${CBLAS_LIBRARIES})
+ set_target_properties(cminpack PROPERTIES LINK_FLAGS "${BLAS_LINKER_FLAGS}")
+ target_compile_definitions(cminpack PUBLIC -DUSE_CBLAS)
+ endif()
project_path : $PWD
# Where to search the archives of the products
-ARCHIVEPATH : "/home/salome/prerequis/archives"
+ARCHIVEPATH : "/home/salome/prerequis/archives:/home/salome-public/prerequis/archives"
ARCHIVEFTP : "ftp.cea.fr/pub/salome/prerequisites"
# Where to search the pyconf of the applications
APPLICATIONPATH : $project_path + "/applications/"