Cartopy-0.17.0-foss-2019a-Python-3.7.2.eb 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. easyblock = 'PythonBundle'
  2. name = 'Cartopy'
  3. version = '0.17.0'
  4. versionsuffix = '-Python-%(pyver)s'
  5. homepage = 'https://scitools.org.uk/cartopy/docs/latest/'
  6. description = """Cartopy is a Python package designed for geospatial data processing in order to produce maps
  7. and other geospatial data analyses.
  8. Cartopy makes use of the powerful PROJ.4, NumPy and Shapely libraries and includes a programmatic interface
  9. built on top of Matplotlib for the creation of publication quality maps."""
  10. toolchain = {'name': 'foss', 'version': '2019a'}
  11. builddependencies = [
  12. ('pkg-config', '0.29.2'),
  13. ]
  14. dependencies = [
  15. ('Python', '3.7.2'),
  16. ('SciPy-bundle', '2019.03'),
  17. ('libpng', '1.6.36'),
  18. ('freetype', '2.9.1'),
  19. ('Tkinter', '%(pyver)s'),
  20. ('GEOS', '3.7.2', versionsuffix),
  21. ('GDAL', '2.4.1', versionsuffix),
  22. ('UDUNITS', '2.2.26'),
  23. ]
  24. use_pip = True
  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.1.0', {
  33. 'source_urls': ['https://pypi.python.org/packages/source/k/kiwisolver'],
  34. 'checksums': ['53eaed412477c836e1b9522c19858a8557d6e595077830146182225613b11a75'],
  35. }),
  36. ('matplotlib', '2.2.4', {
  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. }),
  41. ('Shapely', '1.6.4', {
  42. 'modulename': 'shapely',
  43. 'source_urls': ['https://pypi.python.org/packages/source/s/Shapely/'],
  44. }),
  45. ('dask', '2.0.0', {
  46. 'source_urls': ['https://pypi.python.org/packages/source/d/dask/'],
  47. }),
  48. ('toolz', '0.9.0', {
  49. 'source_urls': ['https://pypi.python.org/packages/source/t/toolz/'],
  50. 'checksums': ['929f0a7ea7f61c178bd951bdae93920515d3fbdbafc8e6caf82d752b9b3b31c9'],
  51. }),
  52. ('cftime', '1.0.3.4', {
  53. 'source_urls': ['https://pypi.python.org/packages/source/c/cftime/'],
  54. }),
  55. ('antlr4-python3-runtime', '4.7.2', {
  56. 'modulename': 'antlr4',
  57. 'source_urls': ['https://files.pythonhosted.org/packages/source/a/antlr4-python3-runtime/'],
  58. }),
  59. ('cf-units', '2.1.1', {
  60. 'source_urls': ['https://pypi.python.org/packages/source/c/cf_units/'],
  61. }),
  62. ('PyKE', '1.1.1', {
  63. 'modulename': 'pyke',
  64. 'source_tmpl': 'pyke3-%(version)s.zip',
  65. 'source_urls': ['https://sourceforge.net/projects/%(name)s/files/%(name)s/%(version)s'],
  66. }),
  67. ('pyshp', '2.1.0', {
  68. 'modulename': 'shapefile',
  69. 'source_urls': ['https://pypi.python.org/packages/source/p/pyshp/'],
  70. }),
  71. (name, version, {
  72. 'prebuildopts': "export D_GLIBCXX_USE_CXX11_ABI=0 && ",
  73. 'preinstallopts': "export D_GLIBCXX_USE_CXX11_ABI=0 && ",
  74. 'source_tmpl': 'v%(version)s.tar.gz',
  75. 'source_urls': ['https://github.com/SciTools/cartopy/archive/'],
  76. #'patches': ['Cartopy-0.17.0_fix_setup.patch'],
  77. }),
  78. ('netCDF4', '1.5.1.2', {
  79. 'modulename': 'netCDF4',
  80. 'source_urls': ['https://pypi.python.org/packages/source/n/netCDF4/'],
  81. }),
  82. ('scitools_iris', '2.2.1', {
  83. 'modulename': 'iris',
  84. 'source_tmpl': 'v%(version)s.tar.gz',
  85. 'source_urls': ['https://github.com/SciTools/iris/archive/'],
  86. }),
  87. ]
  88. sanity_check_commands = ["""python -c 'import matplotlib; matplotlib.use("TkAgg"); import matplotlib.pyplot' """]
  89. modextrapaths = {'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages']}
  90. # see https://matplotlib.org/tutorials/introductory/usage.html#what-is-a-backend
  91. modextravars = {'MPLBACKEND': 'TkAgg'}
  92. moduleclass = 'vis'