easyblock = 'Bundle'

name = 'matplotlib'
version = '1.5.1'

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'

freetype_ver = '2.6.3'
versionsuffix = '-Python-%%(local_pyver)s-freetype-%s' % freetype_ver

dependencies = [
    ('Python', '2.7.13'),
    ('freetype', freetype_ver),
    ('libpng', '1.6.29'),
]

exts_list = [
    ('Cycler', '0.9.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'],
        'patches': ['matplotlib-1.5.1_fix-Tcl-Tk-libdir.patch'],
    }),
]

# specify that Bundle easyblock should run a full sanity check, rather
# than just trying to load the module
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'