1. Removed fake MPI dependency from netcdf-cxx4 and netcdf-fortran.
2. Removed Fortran bootstrap variant from netcdf. Users who need NetCDF Fortran interface should install netcdf-fortran. 3. Added result of ./configure --help on the netcdf-fortran. Verified the package has no additional options that should be exposed through Spack.
This commit is contained in:
@@ -13,7 +13,6 @@ class Netcdf(Package):
|
||||
version('4.3.3', '5fbd0e108a54bd82cb5702a73f56d2ae')
|
||||
|
||||
variant('mpi', default=True, description='Enables MPI parallelism')
|
||||
variant('fortran', default=False, description="Download and install NetCDF-Fortran")
|
||||
variant('hdf4', default=False, description="Enable HDF4 support")
|
||||
|
||||
# Dependencies:
|
||||
@@ -66,11 +65,7 @@ def install(self, spec, prefix):
|
||||
|
||||
# Fortran support
|
||||
# In version 4.2+, NetCDF-C and NetCDF-Fortran have split.
|
||||
# They can be installed separately, but this bootstrap procedure
|
||||
# should be able to install both at the same time.
|
||||
# Note: this is a new experimental feature.
|
||||
if '+fortran' in spec:
|
||||
config_args.append("--enable-remote-fortran-bootstrap")
|
||||
# Use the netcdf-fortran package to install Fortran support.
|
||||
|
||||
config_args.append('CPPFLAGS=%s' % ' '.join(CPPFLAGS))
|
||||
config_args.append('LDFLAGS=%s' % ' '.join(LDFLAGS))
|
||||
@@ -79,8 +74,3 @@ def install(self, spec, prefix):
|
||||
configure(*config_args)
|
||||
make()
|
||||
make("install")
|
||||
|
||||
# After installing NetCDF-C, install NetCDF-Fortran
|
||||
if '+fortran' in spec:
|
||||
make("build-netcdf-fortran")
|
||||
make("install-netcdf-fortran")
|
||||
|
Reference in New Issue
Block a user