easyblock = 'ConfigureMakePythonPackage'

name = 'PyQt5'
version = '5.8.2'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.riverbankcomputing.co.uk/software/pyqt'
description = """PyQt5 is a set of Python bindings for v5 of the Qt application framework from The Qt Company."""

toolchain = {'name': 'intel', 'version': '2018'}

source_urls = ['http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-%(version)s']
sources = ['%(name)s_gpl-%(version)s.tar.gz']

dependencies = [
    ('Python', '2.7.13'),
    ('SIP', '4.19.2', versionsuffix),
    ('Qt5', '5.8.0'),
]

configopts = "configure.py --confirm-license"
configopts += " --destdir=%(installdir)s/lib/python%(pyshortver)s/site-packages "
configopts += " --no-sip-files"

options = {'modulename': '%(name)s'}

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

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

moduleclass = 'vis'
