environment views: refactor stripping build deps (#12069)
This commit is contained in:
parent
8ec098716b
commit
67cd524e93
1 changed files with 1 additions and 3 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue