From 5d862aa889a39d0ee5dea6a7f0378918d6bc0aeb Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Tue, 15 Jun 2021 09:38:36 +0200 Subject: [PATCH] spns #18828: PMML --- products/YACS.pyconf | 3 ++- products/env_scripts/pmml.py | 13 +++++++++++++ products/pmml.pyconf | 21 +++++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 products/env_scripts/pmml.py create mode 100644 products/pmml.pyconf diff --git a/products/YACS.pyconf b/products/YACS.pyconf index cc228aa..fdea20b 100644 --- a/products/YACS.pyconf +++ b/products/YACS.pyconf @@ -28,8 +28,9 @@ default : "Pygments", "six", "pytz", - "markupsafe" + "markupsafe" ] + opt_depend : ['pmml'] build_depend : ["cmake", "swig", "doxygen", "cppunit"] patches : [ diff --git a/products/env_scripts/pmml.py b/products/env_scripts/pmml.py new file mode 100644 index 0000000..a324ebf --- /dev/null +++ b/products/env_scripts/pmml.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path, platform + +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')) + + +def set_nativ_env(env): + pass diff --git a/products/pmml.pyconf b/products/pmml.pyconf new file mode 100644 index 0000000..6acfbb1 --- /dev/null +++ b/products/pmml.pyconf @@ -0,0 +1,21 @@ +default : +{ + name : "pmml" + build_source : "cmake" + get_source : "git" + git_info : + { + repo : "https://codev-tuleap.cea.fr/plugins/git/salome/" $name + ".git" + repo_dev : $repo + } + environ : + { + env_script : $name + ".py" + } + build_depend : ["cmake", "Python", "libxml2"] + depend : [] + opt_depend : ["swig", "doxygen"] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + install_dir : 'base' +} -- 2.39.2