From 0cc2e09185c6c5aa3c2bc75f7afe3341bd603c36 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Fri, 27 Aug 2021 12:56:30 +0200 Subject: [PATCH] spns #24741 : add pandas product --- products/env_scripts/pandas.py | 16 ++++++++++++++++ products/pandas.pyconf | 27 +++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 products/env_scripts/pandas.py create mode 100644 products/pandas.pyconf 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" + } +} -- 2.39.2