ESMValTool-2.0.0b1-foss-2018b-Python-3.6.6.eb 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. easyblock = 'Binary'
  2. name = 'ESMValTool'
  3. version = '2.0.0b1'
  4. versionsuffix = '-Python-%(pyver)s'
  5. homepage = 'https://www.esmvaltool.org/'
  6. description = """The Earth System Model eValuation Tool (ESMValTool)
  7. is a community diagnostics and performance metrics tool
  8. for the evaluation of Earth System Models (ESMs) that
  9. allows for routine comparison of single or multiple models,
  10. either against predecessor versions or against observations."""
  11. toolchain = {'name': 'foss', 'version': '2018b'}
  12. toolchainopts = {'pic': True}
  13. source_urls = ['https://github.com/ESMValGroup/ESMValTool/archive/']
  14. sources = [{'filename': SOURCE_TAR_GZ, 'download_filename': 'v%(version)s.tar.gz'}]
  15. dependencies = [
  16. ('Python', '3.6.6'),
  17. ('ELIC', '0.1', versionsuffix),
  18. ]
  19. exts_defaultclass = 'PythonPackage'
  20. exts_default_options = {
  21. 'source_tmpl': '%(name)s-%(version)s.tar.gz',
  22. }
  23. exts_list = [
  24. # Python deps, order is important!
  25. ('xarray', '0.13.0', {
  26. 'source_urls': ['https://pypi.python.org/packages/source/x/xarray/'],
  27. }),
  28. ('eofs', '1.4.0', {
  29. 'source_urls': ['https://pypi.python.org/packages/source/e/eofs/'],
  30. }),
  31. ('PyKE', '1.1.1', {
  32. 'modulename': 'pyke',
  33. 'source_tmpl': 'pyke3-%(version)s.zip',
  34. 'source_urls': ['https://sourceforge.net/projects/%(name)s/files/%(name)s/%(version)s'],
  35. 'use_pip': True,
  36. }),
  37. ('scitools-iris', '2.2.1', {
  38. 'modulename': 'iris',
  39. 'source_tmpl': 'v%(version)s.tar.gz',
  40. 'source_urls': ['https://github.com/SciTools/iris/archive/'],
  41. }),
  42. ('iris-grib', '0.14.1', {
  43. 'modulename': 'iris_grib',
  44. 'source_tmpl': 'v%(version)s.tar.gz',
  45. 'source_urls': ['https://github.com/SciTools/iris-grib/archive/'],
  46. }),
  47. ('ESMValCore', '2.0.0b2', {
  48. 'modulename': 'esmvalcore',
  49. 'source_tmpl': 'v%(version)s.tar.gz',
  50. 'source_urls': ['https://github.com/ESMValGroup/ESMValCore/archive/'],
  51. }),
  52. ]
  53. skipsteps = ['sanitycheck']
  54. modextrapaths = {
  55. 'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
  56. }
  57. postinstallcmds = [
  58. "cd %(installdir)s && " +
  59. "cp ../../../sources/e/ESMValTool/extensions/v2.0.0b2.tar.gz . && " +
  60. "cp ../../../sources/e/ESMF/esmf_7_1_0r_src.tar.gz . && " +
  61. "tar xzf v2.0.0b2.tar.gz && " +
  62. "tar xzf ESMValTool-%(version)s.tar.gz && " +
  63. "tar xzf esmf_7_1_0r_src.tar.gz && " +
  64. "cd ESMValTool-%(version)s && " +
  65. 'PYTHONPATH="%(installdir)s/lib/python%(pyshortver)s/site-packages":"${PYTHONPATH}" && python setup.py install --prefix=%(installdir)s && ' +
  66. "cd esmvaltool && " +
  67. "cp -r cmorizers diag_scripts interface_scripts recipes utils %(installdir)s/lib/python%(pyshortver)s/site-packages/ESMValTool-%(version)s-py3.6.egg/esmvaltool && " +
  68. "cp config-references.yml %(installdir)s/lib/python%(pyshortver)s/site-packages/ESMValTool-%(version)s-py3.6.egg/esmvaltool && " +
  69. "cd %(installdir)s/ESMValCore-2.0.0b2/esmvalcore && " +
  70. "cp -r cmor utils preprocessor %(installdir)s/lib/python3.6/site-packages/ESMValCore-2.0.0b1-py3.6.egg/esmvalcore && " +
  71. "cd %(installdir)s/esmf/src/addon/ESMPy && " +
  72. "python setup.py build --ESMFMKFILE=%(installdir)s/../../ESMF/7.1.0r-foss-2018b/lib/esmf.mk && " +
  73. "python setup.py install --prefix=%(installdir)s && " +
  74. "cd %(installdir)s && " +
  75. 'pip install xesmf xgcm --install-option "--prefix=%(installdir)s" && ' +
  76. "rm -rf ESMValTool-%(version)s ESMValCore-2.0.0b2 v2.0.0b2.tar.gz esmf esmf_7_1_0r_src.tar.gz"
  77. ]
  78. #modloadmsg = (
  79. # "Now call 'esmvaltool -h'\n\n"
  80. # "To install ESMValTool in your own directory execute: \n"
  81. # "tar zxf $EBROOTESMVALTOOL/ESMValTool-%(version)s.tar.gz\n"
  82. #)
  83. moduleclass = 'geo'