CDO-1.9.10-iimpi-2021.03.eb 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. easyblock = 'ConfigureMake'
  2. name = 'CDO'
  3. version = '1.9.10'
  4. homepage = 'https://code.zmaw.de/projects/cdo'
  5. description = """CDO is a collection of command line Operators to manipulate and analyse Climate and NWP model Data."""
  6. toolchain = {'name': 'iimpi', 'version': '2021.03'}
  7. # stick to lowopt (-O1) to avoid internal compiler error when building on Intel Skylake
  8. #toolchainopts = {'pic': True, 'usempi': True, 'lowopt': True}
  9. toolchainopts = {'pic': True, 'usempi': True}
  10. source_urls = ['https://code.mpimet.mpg.de/attachments/download/24638/']
  11. sources = [SOURCELOWER_TAR_GZ]
  12. checksums = ['cc39c89bbb481d7b3945a06c56a8492047235f46ac363c4f0d980fccdde6677e']
  13. dependencies = [
  14. #('Python', '3.8.6'),
  15. ('HDF5', '1.10.7'),
  16. ('netCDF', '4.8.0'),
  17. ('YAXT', '0.9.0'),
  18. ('ecCodes', '2.22.0'),
  19. ('PROJ', '8.1.0'),
  20. ]
  21. configopts = "--with-hdf5=$EBROOTHDF5 --with-netcdf=$EBROOTNETCDF --with-eccodes=$EBROOTECCODES --with-proj=$EBROOTPROJ"
  22. # fix for linking issues with HDF5 libraries for libcdi, should link with both -lnetcdf and -lhdf5_hl -lhdf5
  23. prebuildopts = "find libcdi -name Makefile | xargs sed -i 's/-lnetcdf -lnetcdf/-lnetcdf -lhdf5_hl -lhdf5/g' && "
  24. sanity_check_paths = {
  25. 'files': ['bin/cdo'],
  26. 'dirs': [],
  27. }
  28. moduleclass = 'data'