easyblock = "PythonPackage"

name = 'h5py'
version = '2.1.3'

homepage = 'http://code.google.com/p/h5py/'
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': 'goolf', 'version': '1.4.10'}
toolchainopts = {'usempi': True}

source_urls = ['http://h5py.googlecode.com/files/']
sources = [SOURCE_TAR_GZ]

python = 'Python'
pythonver = '2.7.3'
pythonshortver = '.'.join(pythonver.split('.')[0:2])
versionsuffix = '-%s-%s' % (python, pythonver)

dependencies = [
    (python, pythonver),
    ('HDF5', '1.8.10'),
    ('mpi4py', '1.3', versionsuffix),  # required for MPI support
]

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/python%s/site-packages/%%(name)s' % pythonshortver],
}

moduleclass = 'data'
