easyblock = 'Bundle'

name = 'matplotlib'
version = '2.0.2'
local_libpng_ver = '1.6.29'
versionsuffix = '-Python-%%(local_pyver)s-libpng-%s' % local_libpng_ver

homepage = 'http://matplotlib.org'
description = """matplotlib is a python 2D plotting library which produces publication quality figures in a variety of
 hardcopy formats and interactive environments across platforms. matplotlib can be used in python scripts, the python
 and ipython shell, web application servers, and six graphical user interface toolkits."""

toolchain = SYSTEM

# this is a bundle of Python packages
exts_defaultclass = 'PythonPackage'

dependencies = [
    ('Python', '3.6.1'),
    ('freetype', '2.7.1', '-libpng-%s' % local_libpng_ver),
]

exts_list = [
    ('Cycler', '0.10.0', {
        'modulename': 'cycler',
        'source_urls': ['https://pypi.python.org/packages/source/C/Cycler'],
        'source_tmpl': 'cycler-%(version)s.tar.gz',
    }),
    (name, version, {
        'source_urls': ['https://pypi.python.org/packages/source/m/matplotlib'],
    }),
]

# specify that Bundle easyblock should run a full sanity check, rather
# than just trying to load the module
local_full_sanity_check = True

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

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

moduleclass = 'vis'
