ELIC_Python-1-foss-2021b.eb 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. easyblock = 'PythonBundle'
  2. name = 'ELIC_Python'
  3. version = '1'
  4. homepage = 'https://gogs.elic.ucl.ac.be'
  5. description = """This repo provides additional Python and R extensions for ELIC ecosystem."""
  6. toolchain = {'name': 'foss', 'version': '2021b'}
  7. builddependencies = [
  8. ('pkg-config', '0.29.2'),
  9. ]
  10. dependencies = [
  11. ('Python', '3.9.6'),
  12. ('SciPy-bundle', '2021.10'),
  13. ('matplotlib', '3.4.3'),
  14. ('GDAL', '3.3.2'),
  15. ('NCL', '6.6.2'),
  16. ('CDO', '1.9.10'),
  17. ('NCO', '5.0.3'),
  18. ('ncview', '2.1.8'),
  19. ('GObject-Introspection', '1.68.0'),
  20. #('libmo_unpack', '3.1.2'),
  21. #('orca', '3.4.3'),
  22. ]
  23. exts_defaultclass = 'PythonPackage'
  24. exts_default_options = {
  25. 'source_tmpl': '%(name)s-%(version)s.tar.gz',
  26. }
  27. exts_list = [
  28. # Python deps, order is important!
  29. ('pip', '22.0.4', {
  30. 'modulename': 'pip',
  31. 'source_tmpl': '%(version)s.tar.gz',
  32. 'source_urls': ['https://github.com/pypa/pip/archive/'],
  33. }),
  34. ('PyKE', '1.1.1', {
  35. 'modulename': 'pyke',
  36. 'source_tmpl': 'pyke3-%(version)s.zip',
  37. 'source_urls': ['https://sourceforge.net/projects/%(name)s/files/%(name)s/%(version)s'],
  38. 'use_pip': True,
  39. }),
  40. #('stratify', '0.1.1', {
  41. # 'modulename': 'stratify',
  42. # 'source_tmpl': 'v%(version)s.tar.gz',
  43. # 'source_urls': ['https://github.com/SciTools-incubator/python-stratify/archive/'],
  44. #}),
  45. #('mo_pack', '0.2.0', {
  46. # 'source_tmpl': 'v%(version)s.tar.gz',
  47. # 'source_urls': ['https://github.com/SciTools/mo_pack/archive/'],
  48. # 'checksums': ['4aa70e1f846b666670843bc2514435dedf7393203e88abaf74d48f8f2717a726'],
  49. #}),
  50. ]
  51. modextrapaths = {
  52. 'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
  53. 'PYTHONUSERBASE': '',
  54. }
  55. postinstallcmds = [
  56. "cd %(installdir)s && " +
  57. 'pip install olefile pyproj pyshp --prefix="%(installdir)s" && ' +
  58. 'pip install chardet urllib3 --prefix="%(installdir)s" '
  59. ]
  60. moduleclass = 'numlib'