easyblock = "PythonPackage"

name = "pyhull"
version = "1.5.4"
homepage = "http://pythonhosted.org/pyhull/"
description = """Pyhull is a Python wrapper to qhull (http://www.qhull.org/) for the computation of the convex hull,
 Delaunay triangulation and Voronoi diagram. It is written as a Python C extension, with both high-level and low-level
 interfaces to qhull.
"""

toolchain = {'name': 'intel', 'version': '2015a'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

patches = ['pyhull-%(version)s_use-provided-Qhull.patch']

python = "Python"
pythonversion = "2.7.9"
py_short_ver = ".".join(pythonversion.split(".")[0:2])

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

dependencies = [
    (python, pythonversion),
    ('Qhull', '2012.1'),
]

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

moduleclass = 'lib'
