matplotlib-3.0.3-foss-2018b-Python-3.6.6.eb 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. easyblock = 'Bundle'
  2. name = 'matplotlib'
  3. version = '3.0.3'
  4. versionsuffix = '-Python-%(pyver)s'
  5. homepage = 'http://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': '2018b'}
  10. # this is a bundle of Python packages
  11. exts_defaultclass = 'PythonPackage'
  12. exts_default_options = {
  13. 'download_dep_fail': True,
  14. 'use_pip': True,
  15. }
  16. builddependencies = [
  17. ('pkg-config', '0.29.2'),
  18. ]
  19. dependencies = [
  20. ('Python', '3.6.6'),
  21. ('libpng', '1.6.34'),
  22. ('freetype', '2.9.1'),
  23. ('Tkinter', '%(pyver)s', versionsuffix),
  24. ]
  25. exts_list = [
  26. ('Cycler', '0.10.0', {
  27. 'modulename': 'cycler',
  28. 'source_tmpl': 'cycler-%(version)s.tar.gz',
  29. 'source_urls': ['https://pypi.python.org/packages/source/C/Cycler'],
  30. 'checksums': ['cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8'],
  31. }),
  32. ('kiwisolver', '1.0.1', {
  33. 'source_urls': ['https://pypi.python.org/packages/source/k/kiwisolver'],
  34. 'checksums': ['ce3be5d520b4d2c3e5eeb4cd2ef62b9b9ab8ac6b6fedbaa0e39cdb6f50644278'],
  35. }),
  36. (name, version, {
  37. 'prebuildopts': "export CPLUS_INCLUDE_PATH=$EBROOTFREETYPE/include/freetype2:${CPLUS_INCLUDE_PATH} && ",
  38. 'preinstallopts': "export CPLUS_INCLUDE_PATH=$EBROOTFREETYPE/include/freetype2:${CPLUS_INCLUDE_PATH} && ",
  39. 'source_urls': ['https://pypi.python.org/packages/source/m/matplotlib'],
  40. 'checksums': ['e1d33589e32f482d0a7d1957bf473d43341115d40d33f578dad44432e47df7b7'],
  41. }),
  42. ]
  43. sanity_check_paths = {
  44. 'files': [],
  45. 'dirs': ['lib/python%(pyshortver)s/site-packages'],
  46. }
  47. sanity_check_commands = ["""python -c 'import matplotlib; matplotlib.use("TkAgg"); import matplotlib.pyplot' """]
  48. modextrapaths = {'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages']}
  49. # see https://matplotlib.org/tutorials/introductory/usage.html#what-is-a-backend
  50. modextravars = {'MPLBACKEND': 'TkAgg'}
  51. moduleclass = 'vis'