]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #23875 OpenTurns
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 16 Feb 2021 15:56:36 +0000 (16:56 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 16 Feb 2021 15:56:36 +0000 (16:56 +0100)
products/env_scripts/openturns.py [new file with mode: 0644]
products/openturns.pyconf [new file with mode: 0644]

diff --git a/products/env_scripts/openturns.py b/products/env_scripts/openturns.py
new file mode 100644 (file)
index 0000000..197aab0
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+import os.path
+
+def set_env(env, prereq_dir, version):
+    env.set('OPENTURN_ROOT_DIR', prereq_dir)
+    env.prepend('PATH', os.path.join(prereq_dir,'bin'))
+    pyver = 'python' + env.get('PYTHON_VERSION')
+    env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
+
+def set_nativ_env(env):
+    pass
diff --git a/products/openturns.pyconf b/products/openturns.pyconf
new file mode 100644 (file)
index 0000000..66746d8
--- /dev/null
@@ -0,0 +1,22 @@
+default :
+{
+    name : "openturns"
+    build_source : "cmake"
+    cmake_options : " -DPYTHON_EXECUTABLE=${PYTHON_ROOT_DIR}/bin/python -DUSE_TBB=OFF"
+    get_source : "archive"
+    environ :
+    {
+       env_script : $name + ".py"
+    }
+    depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt']
+    build_depend : ["cmake", "swig"]
+    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"
+    }
+}