easyblock = "PythonPackage"

name = 'h5py'
version = '2.5.0'

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': '2015b'}
toolchainopts = {'usempi': False}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

py_maj_min = '2.7'
pyver = '%s.10' % py_maj_min
hdf5ver = '1.8.15-patch1'
versionsuffix = '-Python-%s-HDF5-%s-serial' % (pyver, hdf5ver)

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

dependencies = [
    ('Python', pyver),
    ('HDF5', hdf5ver),
]

builddependencies = [('pkgconfig', '1.1.0', '-Python-%(pyver)s')]

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/python%s/site-packages/' % py_maj_min],
}

moduleclass = 'data'
