easyblock = 'ConfigureMake' name = 'CDO' version = '1.9.9' homepage = 'https://code.zmaw.de/projects/cdo' description = """CDO is a collection of command line Operators to manipulate and analyse Climate and NWP model Data.""" toolchain = {'name': 'intel', 'version': '2020a'} # stick to lowopt (-O1) to avoid internal compiler error when building on Intel Skylake toolchainopts = {'pic': True, 'usempi': True, 'lowopt': True} source_urls = ['https://code.mpimet.mpg.de/attachments/download/23323/'] sources = [SOURCELOWER_TAR_GZ] dependencies = [ ('Python', '3.8.2'), ('HDF5', '1.10.6'), ('netCDF', '4.7.4'), ('YAXT', '0.6.2'), ('ecCodes', '2.19.1'), ('PROJ', '7.0.0'), ] configopts = "--with-hdf5=$EBROOTHDF5 --with-netcdf=$EBROOTNETCDF --with-eccodes=$EBROOTECCODES --with-proj=$EBROOTPROJ" # fix for linking issues with HDF5 libraries for libcdi, should link with both -lnetcdf and -lhdf5_hl -lhdf5 prebuildopts = "find libcdi -name Makefile | xargs sed -i 's/-lnetcdf -lnetcdf/-lnetcdf -lhdf5_hl -lhdf5/g' && " sanity_check_paths = { 'files': ['bin/cdo'], 'dirs': [], } moduleclass = 'data'