easyblock = 'Bundle' name = 'matplotlib' version = '3.0.3' versionsuffix = '-Python-%(pyver)s' 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 = {'name': 'foss', 'version': '2018b'} # this is a bundle of Python packages exts_defaultclass = 'PythonPackage' exts_default_options = { 'download_dep_fail': True, 'use_pip': True, } builddependencies = [ ('pkg-config', '0.29.2'), ] dependencies = [ ('Python', '3.6.6'), ('libpng', '1.6.34'), ('freetype', '2.9.1'), ('Tkinter', '%(pyver)s', versionsuffix), ] exts_list = [ ('Cycler', '0.10.0', { 'modulename': 'cycler', 'source_tmpl': 'cycler-%(version)s.tar.gz', 'source_urls': ['https://pypi.python.org/packages/source/C/Cycler'], 'checksums': ['cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8'], }), ('kiwisolver', '1.0.1', { 'source_urls': ['https://pypi.python.org/packages/source/k/kiwisolver'], 'checksums': ['ce3be5d520b4d2c3e5eeb4cd2ef62b9b9ab8ac6b6fedbaa0e39cdb6f50644278'], }), (name, version, { 'prebuildopts': "export CPLUS_INCLUDE_PATH=$EBROOTFREETYPE/include/freetype2:${CPLUS_INCLUDE_PATH} && ", 'preinstallopts': "export CPLUS_INCLUDE_PATH=$EBROOTFREETYPE/include/freetype2:${CPLUS_INCLUDE_PATH} && ", 'source_urls': ['https://pypi.python.org/packages/source/m/matplotlib'], 'checksums': ['e1d33589e32f482d0a7d1957bf473d43341115d40d33f578dad44432e47df7b7'], }), ] sanity_check_paths = { 'files': [], 'dirs': ['lib/python%(pyshortver)s/site-packages'], } sanity_check_commands = ["""python -c 'import matplotlib; matplotlib.use("TkAgg"); import matplotlib.pyplot' """] modextrapaths = {'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages']} # see https://matplotlib.org/tutorials/introductory/usage.html#what-is-a-backend modextravars = {'MPLBACKEND': 'TkAgg'} moduleclass = 'vis'