CDO-1.9.9-intel-2020b.eb 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. easyblock = 'ConfigureMake'
  2. name = 'CDO'
  3. version = '1.9.9'
  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': 'intel', 'version': '2020b'}
  7. # stick to lowopt (-O1) to avoid internal compiler error when building on Intel Skylake
  8. toolchainopts = {'pic': True, 'usempi': True, 'lowopt': True}
  9. source_urls = ['https://code.mpimet.mpg.de/attachments/download/23323/']
  10. sources = [SOURCELOWER_TAR_GZ]
  11. dependencies = [
  12. ('Python', '3.8.6'),
  13. ('HDF5', '1.10.7'),
  14. ('netCDF', '4.7.4'),
  15. ('YAXT', '0.6.2'),
  16. ('ecCodes', '2.19.1'),
  17. ('PROJ', '7.2.0'),
  18. ]
  19. configopts = "--with-hdf5=$EBROOTHDF5 --with-netcdf=$EBROOTNETCDF --with-eccodes=$EBROOTECCODES --with-proj=$EBROOTPROJ"
  20. # fix for linking issues with HDF5 libraries for libcdi, should link with both -lnetcdf and -lhdf5_hl -lhdf5
  21. prebuildopts = "find libcdi -name Makefile | xargs sed -i 's/-lnetcdf -lnetcdf/-lnetcdf -lhdf5_hl -lhdf5/g' && "
  22. sanity_check_paths = {
  23. 'files': ['bin/cdo'],
  24. 'dirs': [],
  25. }
  26. moduleclass = 'data'