From bb76ce10ca0a313302ad35d5eb820ce93bad054c Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Tue, 16 Feb 2021 16:56:36 +0100 Subject: [PATCH] spns #23875 OpenTurns --- products/env_scripts/openturns.py | 11 +++++++++++ products/openturns.pyconf | 22 ++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 products/env_scripts/openturns.py create mode 100644 products/openturns.pyconf diff --git a/products/env_scripts/openturns.py b/products/env_scripts/openturns.py new file mode 100644 index 0000000..197aab0 --- /dev/null +++ b/products/env_scripts/openturns.py @@ -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 index 0000000..66746d8 --- /dev/null +++ b/products/openturns.pyconf @@ -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" + } +} -- 2.39.2