easyblock = "PythonPackage"

name = "petsc4py"
version = "3.3"

homepage = 'https://code.google.com/p/petsc4py/'
description = """petsc4py are Python bindings for PETSc, the Portable, Extensible Toolchain for Scientific Computation."""


toolchain = {'name': 'ictce', 'version': '5.3.0'}

source_urls = ['https://petsc4py.googlecode.com/files/']
sources = [SOURCE_TAR_GZ]

python = "Python"
python_version = "2.7.3"
versionsuffix = '-%s-%s' % (python, python_version)

dependencies = [
    (python, python_version),
    ('PETSc', '3.3-p2', versionsuffix)
]

py_short_ver = ".".join(python_version.split(".")[0:2])
pylibdir = "lib/python%s/site-packages/%s" % (py_short_ver, name)

sanity_check_paths = {
    'files': [],
    'dirs': [pylibdir]
}

moduleclass = 'tools'
