# IT4Innovations 2019

easyblock = 'PythonPackage'

name = 'h5py'
version = '2.9.0'
versionsuffix = '-Py-2.7'

homepage = 'http://www.h5py.org/'
description = """HDF5 for Python (h5py) is a general-purpose Python interface to the Hierarchical Data Format library,
 version 5. HDF5 is a versatile, mature scientific software library designed for the fast, flexible storage of enormous
 amounts of data."""

toolchain = {'name': 'intel', 'version': '2018a'}
toolchainopts = {'usempi': True}

source_urls = ['https://files.pythonhosted.org/packages/43/27/a6e7dcb8ae20a4dbf3725321058923fec262b6f7835179d78ccc8d98deec/']
sources = ['h5py-2.9.0.tar.gz']

dependencies = [
    ('HDF5', '1.10.4', '-parallel'),
    ('numpy', '1.15.4', '-Py-2.7', True),
    ('mpi4py', '3.0.0', '-Py-2.7'),  # required for MPI support
    ('six', '1.11.0', '-Py-2.7', True),
    ('pkgconfig', '1.3.1', '-Py-2.7'),
    ('Cython', '0.27.3', '-Py-2.7', True),
]

prebuildopts = 'python setup.py configure --mpi --hdf5=$EBROOTHDF5 && '

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/python2.7/site-packages/h5py-2.9.0-py2.7-linux-x86_64.egg'],
}
moduleclass = 'python'
