package : renamed setup_dependent_environment
to module_modifications
This commit is contained in:
@@ -46,8 +46,8 @@ class Mpich(Package):
|
||||
provides('mpi@:3.0', when='@3:')
|
||||
provides('mpi@:1.3', when='@1:')
|
||||
|
||||
def environment_modifications(self, module, spec, dependent_spec):
|
||||
env = super(Mpich, self).environment_modifications(module, spec, dependent_spec)
|
||||
def environment_modifications(self, dependent_spec):
|
||||
env = super(Mpich, self).environment_modifications(dependent_spec)
|
||||
env.set_env('MPICH_CC', os.environ['CC'])
|
||||
env.set_env('MPICH_CXX', os.environ['CXX'])
|
||||
env.set_env('MPICH_F77', os.environ['F77'])
|
||||
@@ -55,7 +55,7 @@ def environment_modifications(self, module, spec, dependent_spec):
|
||||
env.set_env('MPICH_FC', os.environ['FC'])
|
||||
return env
|
||||
|
||||
def setup_dependent_environment(self, module, spec, dep_spec):
|
||||
def module_modifications(self, module, spec, dep_spec):
|
||||
"""For dependencies, make mpicc's use spack wrapper."""
|
||||
# FIXME : is this necessary ? Shouldn't this be part of a contract with MPI providers?
|
||||
module.mpicc = join_path(self.prefix.bin, 'mpicc')
|
||||
|
Reference in New Issue
Block a user