easyblock = "PythonPackage"

name = 'Instant'
version = '1.0.0'

homepage = 'https://launchpad.net/instant'
description = """Instant is a Python module that allows for instant inlining of C and C++ code in Python.
 It is a small Python module built on top of SWIG and Distutils. It is part of the FEniCS Project (http://fenicsproject.org)."""

toolchain = {'name': 'goalf', 'version': '1.1.0-no-OFED'}

majorversion = "%s.x" % ".".join(version.split('.')[:-1])
source_urls = ['https://launchpad.net/instant/%s/%s/+download/' % (majorversion, version)]
sources = [SOURCELOWER_TAR_GZ]

python = "Python"
pythonversion = '2.7.3'
pythonshortversion = ".".join(pythonversion.split(".")[:-1])

versionsuffix = '-%s-%s' % (python, pythonversion)

dependencies = [
    (python, pythonversion),
    ('SWIG', '2.0.4', versionsuffix),
]

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

moduleclass = 'devel'
