environment views: refactor stripping build deps (#12069)

This commit is contained in:
Greg Becker 2019-07-20 11:45:20 -05:00 committed by Todd Gamblin
parent 8ec098716b
commit 67cd524e93

View file

@ -472,9 +472,7 @@ def regenerate(self, all_specs, roots):
# recognize environment specs (which do store build deps), then # recognize environment specs (which do store build deps), then
# they need to be stripped # they need to be stripped
if spec.concrete: # Do not link unconcretized roots if spec.concrete: # Do not link unconcretized roots
specs_for_view.append(spack.spec.Spec.from_dict( specs_for_view.append(spec.copy(deps=('link', 'run')))
spec.to_dict(all_deps=False)
))
if self.select: if self.select:
specs_for_view = list(filter(self.select_fn, specs_for_view)) specs_for_view = list(filter(self.select_fn, specs_for_view))