package : renamed setup_dependent_environment to module_modifications

This commit is contained in:
alalazo
2016-03-15 14:05:30 +01:00
parent c85888eb57
commit 572cb93bf8
8 changed files with 22 additions and 28 deletions

View File

@@ -41,8 +41,8 @@ class Openmpi(Package):
def url_for_version(self, version):
return "http://www.open-mpi.org/software/ompi/v%s/downloads/openmpi-%s.tar.bz2" % (version.up_to(2), version)
def environment_modifications(self, module, spec, dependent_spec):
env = super(Openmpi, self).environment_modifications(module, spec, dependent_spec)
def environment_modifications(self, dependent_spec):
env = super(Openmpi, self).environment_modifications(dependent_spec)
# FIXME : the compilers should point to the current wrappers, not to generic cc etc.
env.set_env('OMPI_CC', 'cc')
env.set_env('OMPI_CXX', 'c++')