easyblock = 'PythonPackage'

name = 'Cython'
version = '0.24.1'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://pypi.python.org/pypi/Cython/'
description = """The Cython language makes writing C extensions for the Python language as easy as Python itself.
Cython is a source code translator based on the well-known Pyrex, but supports more cutting edge functionality and optimizations."""

toolchain = {'name': 'foss', 'version': '2016a'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

dependencies = [('Python', '2.7.11')]

cythonlibdir = 'lib/python%(pyshortver)s/site-packages/Cython-%(version)s-py%(pyshortver)s-linux-x86_64.egg'
sanity_check_paths = {
    'files': [
        'bin/cygdb',
        'bin/cython',
        '%s/%%(namelower)s.py' %
        cythonlibdir],
    'dirs': [
        cythonlibdir +
        '/%(name)s']}

moduleclass = 'lang'
