Script for 'eccodes' is compatible with Python 3. (#6402)

This commit is contained in:
Sergey Kosukhin 2017-11-21 23:59:04 +01:00 committed by Christoph Junghans
parent a0df5ae3e0
commit d4ab511f73

View File

@ -80,11 +80,8 @@ def cmake_args(self):
options = ['NETCDF', 'PNG', 'AEC', 'ECCODES_THREADS', options = ['NETCDF', 'PNG', 'AEC', 'ECCODES_THREADS',
'ECCODES_OMP_THREADS', 'MEMFS', 'PYTHON', 'FORTRAN'] 'ECCODES_OMP_THREADS', 'MEMFS', 'PYTHON', 'FORTRAN']
args = map(lambda var, opt: args = ["-DENABLE_%s=%s" % (opt, 'ON' if var in self.spec else 'OFF')
"-DENABLE_%s=%s" % for var, opt in zip(variants, options)]
(opt, 'ON' if var in self.spec else 'OFF'),
variants,
options)
if self.spec.variants['jp2k'].value == 'none': if self.spec.variants['jp2k'].value == 'none':
args.append('-DENABLE_JPG=OFF') args.append('-DENABLE_JPG=OFF')