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

@@ -284,8 +284,8 @@ def setup_package(pkg):
# Allow dependencies to set up environment as well.
for dep_spec in pkg.spec.traverse(root=False):
env.extend(dep_spec.package.environment_modifications(pkg.module, dep_spec, pkg.spec))
dep_spec.package.setup_dependent_environment(pkg.module, dep_spec, pkg.spec)
dep_spec.package.module_modifications(pkg.module, dep_spec, pkg.spec)
env.extend(dep_spec.package.environment_modifications(pkg.spec))
apply_environment_modifications(env)

View File

@@ -984,10 +984,10 @@ def module(self):
fromlist=[self.__class__.__name__])
def environment_modifications(self, module, spec, dependent_spec):
def environment_modifications(self, dependent_spec):
return EnvironmentModifications()
def setup_dependent_environment(self, module, spec, dependent_spec):
def module_modifications(self, module, spec, dependent_spec):
"""Called before the install() method of dependents.
Default implementation does nothing, but this can be