summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2019-07-20 11:45:20 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2019-07-20 09:45:20 -0700
commit67cd524e931c564a98375ab0f51f6082af378000 (patch)
tree6a910a7edfb726c8f037ad32898e367f08ded021
parent8ec098716b977544ed16eb45cfa78f74d19f51ff (diff)
downloadspack-67cd524e931c564a98375ab0f51f6082af378000.tar.gz
spack-67cd524e931c564a98375ab0f51f6082af378000.tar.bz2
spack-67cd524e931c564a98375ab0f51f6082af378000.tar.xz
spack-67cd524e931c564a98375ab0f51f6082af378000.zip
environment views: refactor stripping build deps (#12069)
-rw-r--r--lib/spack/spack/environment.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/spack/spack/environment.py b/lib/spack/spack/environment.py
index d72a53dd76..e6dcc08b22 100644
--- a/lib/spack/spack/environment.py
+++ b/lib/spack/spack/environment.py
@@ -472,9 +472,7 @@ class ViewDescriptor(object):
# recognize environment specs (which do store build deps), then
# they need to be stripped
if spec.concrete: # Do not link unconcretized roots
- specs_for_view.append(spack.spec.Spec.from_dict(
- spec.to_dict(all_deps=False)
- ))
+ specs_for_view.append(spec.copy(deps=('link', 'run')))
if self.select:
specs_for_view = list(filter(self.select_fn, specs_for_view))