summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-04-04 13:56:15 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-04-04 13:56:15 -0700
commit0296f96c7b5279b2dd9cf585a493f21e3344fe2b (patch)
treeba99f60c277f7feed0358c6aacc805c618941f18 /lib
parent3404a61ebf57021b599c7bc0cf4cae7de83bbe34 (diff)
downloadspack-0296f96c7b5279b2dd9cf585a493f21e3344fe2b.tar.gz
spack-0296f96c7b5279b2dd9cf585a493f21e3344fe2b.tar.bz2
spack-0296f96c7b5279b2dd9cf585a493f21e3344fe2b.tar.xz
spack-0296f96c7b5279b2dd9cf585a493f21e3344fe2b.zip
Resolves #739. Don't call setup_dependent_* for package itself.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_environment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py
index f4f8037ac0..eb72f2a6b4 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -304,7 +304,7 @@ def setup_package(pkg):
# traverse in postorder so package can use vars from its dependencies
spec = pkg.spec
- for dspec in pkg.spec.traverse(order='post'):
+ for dspec in pkg.spec.traverse(order='post', root=False):
# If a user makes their own package repo, e.g.
# spack.repos.mystuff.libelf.Libelf, and they inherit from
# an existing class like spack.repos.original.libelf.Libelf,
@@ -321,6 +321,7 @@ def setup_package(pkg):
dpkg.setup_dependent_package(pkg.module, spec)
dpkg.setup_dependent_environment(spack_env, run_env, spec)
+ set_module_variables_for_package(pkg, pkg.module)
pkg.setup_environment(spack_env, run_env)
# Make sure nothing's strange about the Spack environment.