easyblock = "PythonPackage"

name = 'lxml'
version = '3.8.0'

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

toolchain = SYSTEM

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

local_python = 'Python'
local_pythonversion = '2.7.13'
local_pyshortver = '.'.join(local_pythonversion.split('.')[:2])

versionsuffix = "-%s-%s-base" % (local_python, local_pythonversion)

dependencies = [
    (local_python, local_pythonversion, '-base'),
    ('libxml2', '2.9.4'),
    ('libxslt', '1.1.29'),
]

local_pylibdir = "lib/local_python%s/site-packages/%%(name)s" % local_pyshortver

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

moduleclass = 'lib'
