ELIC_Python-1-foss-2020b-Python-2.7.18.eb 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. easyblock = 'PythonBundle'
  2. name = 'ELIC_Python'
  3. version = '1'
  4. versionsuffix = '-Python-%(pyver)s'
  5. homepage = 'https://gogs.elic.ucl.ac.be'
  6. description = """This repo provides additional Python and R extensions for ELIC ecosystem."""
  7. toolchain = {'name': 'foss', 'version': '2020b'}
  8. builddependencies = [
  9. ('pkg-config', '0.29.2'),
  10. ]
  11. dependencies = [
  12. ('Python', '2.7.18'),
  13. ('SciPy-bundle', '2019.10', versionsuffix),
  14. ('GDAL', '3.0.0', versionsuffix),
  15. #('NCL', '6.6.2'),
  16. #('CDO', '1.9.9'),
  17. #('NCO', '4.9.7'),
  18. ('ncview', '2.1.7'),
  19. ]
  20. exts_defaultclass = 'PythonPackage'
  21. exts_default_options = {
  22. 'source_tmpl': '%(name)s-%(version)s.tar.gz',
  23. }
  24. exts_list = [
  25. # Python deps, order is important!
  26. ('PyKE', '1.1.1', {
  27. 'source_tmpl': 'pyke-1.1.1.zip',
  28. 'source_urls': ['http://download.sourceforge.net/pyke'],
  29. 'checksums': ['b0b294f435c6e6d2d4a80badf57d92cb66814dfe21e644a521901209e6a3f8ae'],
  30. }),
  31. #('matplotlib', '2.2.4', {
  32. # 'source_urls': ['https://pypi.python.org/packages/source/m/matplotlib/'],
  33. #}),
  34. #('basemap', '1.1.0', {
  35. # 'modulename': 'mpl_toolkits.basemap',
  36. # 'source_tmpl': 'v%(version)s.tar.gz',
  37. # 'source_urls': ['https://github.com/matplotlib/basemap/archive'],
  38. # 'checksums': ['6acdc3a08bfcebf0a1b52a05d73d51b7aa5e7240fedfa95537c92d16f2ef8778'],
  39. #}),
  40. #('scipy', '1.2.2', {
  41. # 'source_urls': ['https://pypi.python.org/packages/source/s/scipy/'],
  42. # 'checksums': ['a4331e0b8dab1ff75d2c67b5158a8bb9a83c799d7140094dda936d876c7cfbb1'],
  43. #}),
  44. ]
  45. modextrapaths = {
  46. 'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
  47. 'PYTHONUSERBASE': '',
  48. }
  49. postinstallcmds = [
  50. "cd %(installdir)s && " +
  51. 'pip install setuptools --upgrade && ' +
  52. 'pip install olefile pyproj pyshp chardet urllib3 --prefix="%(installdir)s" && ' +
  53. 'pip install OWSLib ' +
  54. 'netCDF4==1.4.3.2 ' +
  55. 'dask ' +
  56. 'cf-units ' +
  57. 'Cartopy ' +
  58. '--prefix="%(installdir)s" '
  59. ]
  60. moduleclass = 'numlib'