easyblock = 'PythonPackage'

name = 'MySQL-python'
version = '1.2.5'

homepage = 'https://github.com/farcepest/MySQLdb1'
description = """MySQL database connector for Python"""

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

source_urls = [PYPI_SOURCE]
sources = [SOURCE_ZIP]

mariadb_ver = '10.1.14'
versionsuffix = '-Python-%%(pyver)s-MariaDB-%s' % mariadb_ver

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

# enable static linking to fix problem with unresolved symbols in mysql.so
prebuildopts = "sed -i 's/static = False/static = True/g' site.cfg && "

options = {'modulename': 'MySQLdb'}

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

moduleclass = 'lib'
