From: Nabil Ghodbane Date: Fri, 27 Aug 2021 10:56:30 +0000 (+0200) Subject: spns #24741 : add pandas product X-Git-Tag: V9_8_0~110 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0cc2e09185c6c5aa3c2bc75f7afe3341bd603c36;p=tools%2Fsat_salome.git spns #24741 : add pandas product --- diff --git a/products/env_scripts/pandas.py b/products/env_scripts/pandas.py new file mode 100644 index 0000000..2dd744a --- /dev/null +++ b/products/env_scripts/pandas.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path, platform + +def set_env(env, prereq_dir, version): + env.set("PANDAS_ROOT_DIR",prereq_dir) + versionPython = env.get('PYTHON_VERSION') + if platform.system() == "Windows" : + pass + else : + env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'python' + versionPython, 'site-packages')) + +def set_nativ_env(env): + pass + diff --git a/products/pandas.pyconf b/products/pandas.pyconf new file mode 100644 index 0000000..67a7b8a --- /dev/null +++ b/products/pandas.pyconf @@ -0,0 +1,27 @@ +default : +{ + name : "pandas" + build_source : "script" + compil_script : 'pip_install' + $VARS.scriptExtension + get_source : "archive" + system_info : + { + rpm : ["python3-pandas"] + rpm_dev : [] + apt : ["python3-pandas"] + apt_dev : [] + } + environ : + { + env_script : $name + ".py" + } + depend : ['Python', 'setuptools', 'Cython', 'dateutil'] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + install_dir : 'base' + properties: + { + incremental : "yes" + pip : "yes" + } +}