Script for 'eccodes' is compatible with Python 3. (#6402)
This commit is contained in:
parent
a0df5ae3e0
commit
d4ab511f73
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user