]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #18828: PMML
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 15 Jun 2021 07:38:36 +0000 (09:38 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 15 Jun 2021 07:38:44 +0000 (09:38 +0200)
products/YACS.pyconf
products/env_scripts/pmml.py [new file with mode: 0644]
products/pmml.pyconf [new file with mode: 0644]

index cc228aa4076b6928f6ce4cd806285c7d25040234..fdea20b324a1917373e027ce192ee54b3086fcd7 100644 (file)
@@ -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 (file)
index 0000000..a324ebf
--- /dev/null
@@ -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 (file)
index 0000000..6acfbb1
--- /dev/null
@@ -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'
+}