Skip to content
Snippets Groups Projects
Commit 0296f96c authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Resolves #739. Don't call setup_dependent_* for package itself.

parent 3404a61e
No related branches found
No related tags found
No related merge requests found
...@@ -304,7 +304,7 @@ def setup_package(pkg): ...@@ -304,7 +304,7 @@ def setup_package(pkg):
# traverse in postorder so package can use vars from its dependencies # traverse in postorder so package can use vars from its dependencies
spec = pkg.spec 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. # If a user makes their own package repo, e.g.
# spack.repos.mystuff.libelf.Libelf, and they inherit from # spack.repos.mystuff.libelf.Libelf, and they inherit from
# an existing class like spack.repos.original.libelf.Libelf, # an existing class like spack.repos.original.libelf.Libelf,
...@@ -321,6 +321,7 @@ def setup_package(pkg): ...@@ -321,6 +321,7 @@ def setup_package(pkg):
dpkg.setup_dependent_package(pkg.module, spec) dpkg.setup_dependent_package(pkg.module, spec)
dpkg.setup_dependent_environment(spack_env, run_env, 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) pkg.setup_environment(spack_env, run_env)
# Make sure nothing's strange about the Spack environment. # Make sure nothing's strange about the Spack environment.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment