From f91a1bad1e637c91b18772a6dd5f9aa23b98b6b2 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Thu, 8 Jul 2021 18:35:41 +0200 Subject: [PATCH] spns #18828: PMML post-build environment - Linux case --- products/env_scripts/pmml.py | 8 +++++++- products/pmml.pyconf | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/products/env_scripts/pmml.py b/products/env_scripts/pmml.py index a324ebf..650ab85 100644 --- a/products/env_scripts/pmml.py +++ b/products/env_scripts/pmml.py @@ -7,7 +7,13 @@ def set_env(env, prereq_dir, version): env.set("PMML_ROOT_DIR",prereq_dir) env.set('PMML_INCLUDE_DIR',os.path.join(prereq_dir,'include')) env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + if platform.system() == "Windows" : + pass + else: + env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib')) + pyver = 'python' + env.get('PYTHON_VERSION') + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages')) + env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'bin')) - def set_nativ_env(env): pass diff --git a/products/pmml.pyconf b/products/pmml.pyconf index 6acfbb1..f3bd04f 100644 --- a/products/pmml.pyconf +++ b/products/pmml.pyconf @@ -5,8 +5,8 @@ default : get_source : "git" git_info : { - repo : "https://codev-tuleap.cea.fr/plugins/git/salome/" $name + ".git" - repo_dev : $repo + repo_dev : $PROJECTS.projects.salome.git_info.default_git_server_dev + "pmml.git" + repo : $repo_dev } environ : { -- 2.39.2