From: Nabil Ghodbane Date: Thu, 8 Jul 2021 16:35:41 +0000 (+0200) Subject: spns #18828: PMML post-build environment - Linux case X-Git-Tag: V9_8_0~134 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f91a1bad1e637c91b18772a6dd5f9aa23b98b6b2;p=tools%2Fsat_salome.git spns #18828: PMML post-build environment - Linux case --- 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 : {