easyblock = "PythonPackage"

name = 'Greenlet'
version = '0.4.0'

homepage = 'https://github.com/python-greenlet/greenlet'
description = """The greenlet package is a spin-off of Stackless, a version of CPython that
 supports micro-threads called 'tasklets'. Tasklets run pseudo-concurrently (typically in a single
 or a few OS-level threads) and are synchronized with data exchanges on 'channels'.
 A 'greenlet', on the other hand, is a still more primitive notion of micro-thread with no implicit
 scheduling; coroutines, in other words. This is useful when you want to control exactly when your code runs."""

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

source_urls = [PYPI_LOWER_SOURCE]
sources = [SOURCELOWER_ZIP]

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

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

dependencies = [(python, pythonversion)]

patches = ['icc_no_amd64_predefined_in_prepocessor.patch']

sanity_check_paths = {
    'files': ['include/python%s/greenlet/greenlet.h' % pythonshortversion,
              'lib/python%s/site-packages/greenlet.so' % pythonshortversion],
    'dirs': [],
}

moduleclass = 'devel'
