matplotlib-3.3.3-foss-2020b-Python-3.8.6.eb 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. easyblock = 'PythonBundle'
  2. name = 'matplotlib'
  3. version = '3.3.3'
  4. versionsuffix = '-Python-%(pyver)s'
  5. homepage = 'https://matplotlib.org'
  6. description = """matplotlib is a python 2D plotting library which produces publication quality figures in a variety of
  7. hardcopy formats and interactive environments across platforms. matplotlib can be used in python scripts, the python
  8. and ipython shell, web application servers, and six graphical user interface toolkits."""
  9. toolchain = {'name': 'foss', 'version': '2020b'}
  10. builddependencies = [
  11. ('pkg-config', '0.29.2'),
  12. ]
  13. dependencies = [
  14. ('Python', '3.8.6'),
  15. ('libjpeg-turbo', '2.0.5'),
  16. ('SciPy-bundle', '2020.11'),
  17. ('libpng', '1.6.37'),
  18. ('zlib', '1.2.11'),
  19. ('LibTIFF', '4.1.0'),
  20. ('freetype', '2.10.3'),
  21. ('Tkinter', '%(pyver)s'),
  22. ('Pillow', '8.0.1', versionsuffix),
  23. ]
  24. use_pip = True
  25. sanity_pip_check = True
  26. exts_list = [
  27. ('Cycler', '0.10.0', {
  28. 'modulename': 'cycler',
  29. 'source_tmpl': 'cycler-%(version)s.tar.gz',
  30. 'source_urls': ['https://pypi.python.org/packages/source/C/Cycler'],
  31. }),
  32. ('kiwisolver', '1.1.0', {
  33. 'source_urls': ['https://pypi.python.org/packages/source/k/kiwisolver'],
  34. }),
  35. (name, version, {
  36. 'prebuildopts': "export CPLUS_INCLUDE_PATH=$EBROOTFREETYPE/include/freetype2:${CPLUS_INCLUDE_PATH} && ",
  37. 'preinstallopts': "export CPLUS_INCLUDE_PATH=$EBROOTFREETYPE/include/freetype2:${CPLUS_INCLUDE_PATH} && ",
  38. 'source_urls': ['https://pypi.python.org/packages/source/m/matplotlib'],
  39. }),
  40. ]
  41. postinstallcmds = [
  42. "cd %(installdir)s && " +
  43. 'python3 -m pip install --upgrade Pillow '
  44. ]
  45. sanity_check_commands = [
  46. """python -c 'import matplotlib; matplotlib.use("Agg"); import matplotlib.pyplot' """,
  47. "python -c 'from mpl_toolkits.mplot3d import Axes3D'",
  48. ]
  49. # use non-interactive plotting backend as default
  50. # see https://matplotlib.org/tutorials/introductory/usage.html#what-is-a-backend
  51. modextravars = {'MPLBACKEND': 'Agg'}
  52. moduleclass = 'vis'