easyblock = "PythonPackage"

name = 'Shapely'
version = '1.2.15'

homepage = 'http://toblerity.github.com/shapely/'
description = """Shapely is a BSD-licensed Python package for manipulation and analysis of planar geometric objects.
 It is based on the widely deployed GEOS (the engine of PostGIS) and JTS (from which GEOS is ported) libraries."""

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

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

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

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

dependencies = [
    (python, pythonversion),
    ('setuptools', '0.6c11', versionsuffix),
    ('GEOS', '3.3.5'),
]

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

moduleclass = 'math'
