Move dpeendency environment setup to build_environemnt.

This commit is contained in:
Todd Gamblin 2015-02-08 22:01:00 -08:00
parent f81b136547
commit c077f05705
2 changed files with 5 additions and 5 deletions

View file

@ -207,3 +207,8 @@ def setup_package(pkg):
set_compiler_environment_variables(pkg) set_compiler_environment_variables(pkg)
set_build_environment_variables(pkg) set_build_environment_variables(pkg)
set_module_variables_for_package(pkg) set_module_variables_for_package(pkg)
# Allow dependencies to set up environment as well.
for dep_spec in pkg.spec.traverse(root=False):
dep_spec.package.setup_dependent_environment(
pkg.module, dep_spec, pkg.spec)

View file

@ -829,11 +829,6 @@ def do_install(self, **kwargs):
self.stage.chdir_to_source() self.stage.chdir_to_source()
build_env.setup_package(self) build_env.setup_package(self)
# Allow dependencies to further set up the environment.
for dep_spec in self.spec.traverse(root=False):
dep_spec.package.setup_dependent_environment(
self.module, dep_spec, self.spec)
if fake_install: if fake_install:
self.do_fake_install() self.do_fake_install()
else: else: