easyblock = "PythonPackage"

name = 'lxml'
version = '3.4.4'

homepage = 'http://lxml.de/'
description = """The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt."""

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

source_urls = ['http://lxml.de/files/']
sources = [SOURCE_TGZ]

python = 'Python'
pythonversion = '2.7.9'
pyshortver = '.'.join(pythonversion.split('.')[:2])

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

dependencies = [
    (python, pythonversion),
    ('libxml2', '2.9.2'),
    ('libxslt', '1.1.28'),
]

pylibdir = "lib/python%s/site-packages/%%(name)s" % pyshortver

sanity_check_paths = {
    'files': [],
    'dirs': [('%s-%%(version)s-py%s.egg' % (pylibdir, pyshortver),
              '%s-%%(version)s-py%s-linux-x86_64.egg' % (pylibdir, pyshortver))],
}

moduleclass = 'lib'
