--- /dev/null
+#!/bin/bash
+
+echo "##########################################################################"
+echo "openturns" $VERSION
+echo "##########################################################################"
+
+# we don't install in python directory -> modify environment as described in INSTALL file
+
+#mkdir -p $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
+rm -rf $BUILD_DIR
+cp -r $SOURCE_DIR $BUILD_DIR
+mkdir -p $BUILD_DIR/cache/pip
+cd $BUILD_DIR
+$PYTHONBIN setup.py build
+if [ $? -ne 0 ]
+then
+ echo "ERROR on ${PYTHONBIN} setup.py build"
+ exit 4
+fi
+#
+
+$PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL
+if [ $? -ne 0 ]
+then
+ echo "ERROR on ${PYTHONBIN} setup.py install --prefix=$PRODUCT_INSTALL"
+ exit 5
+fi
--- /dev/null
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+
+import os.path
+import platform
+
+def set_env(env, prereq_dir, version):
+ if not platform.system() == "Windows" :
+ pyver = 'python' + env.get('PYTHON_VERSION')
+ env.set('H5PY_ROOT_DIR',prereq_dir)
+ env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'bin'))
+ env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages','numpy','core','include'))
+
+def set_nativ_env(env):
+ pass
--- /dev/null
+default :
+{
+ name : "h5py"
+ build_source : "script"
+ compil_script: "h5py.sh"
+ get_source : "archive"
+ patches : []
+ system_info :
+ {
+ rpm : ["h5py"]
+ rpm_dev : []
+ apt : ["python3-h5py"]
+ apt_dev : []
+ }
+ environ :
+ {
+ env_script : $name + ".py"
+ }
+ depend : ['Python', 'numpy', 'hdf5']
+ opt_depend: ['openmpi']
+ 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 : "no"
+ }
+}