Skip to content
Snippets Groups Projects
Commit 0f427ed3 authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Tweak nccmp to be more spack-compatible.

- Spack doesn't set F90, but it confuses the nccmp build.  Just remove
  it from the environment.

- TODO: should build environment unset this variable?
parent 1cc94a0f
No related branches found
No related tags found
No related merge requests found
from spack import *
import os
class Nccmp(Package):
"""Compare NetCDF Files"""
......@@ -15,16 +14,10 @@ def install(self, spec, prefix):
# FCFLAGS respectively in this configure, please unset
# F90/F90FLAGS and set FC/FCFLAGS instead and rerun configure
# again.
os.environ['FC'] = os.environ['F90']
del os.environ['F90']
try:
os.environ['FCFLAGS'] = os.environ['F90FLAGS']
del os.environ['F90FLAGS']
except KeyError: # There are no flags
pass
env.pop('F90', None)
env.pop('F90FLAGS', None)
configure('--prefix=%s' % prefix)
make()
make("check")
make("install")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment