wrap generator with collection to avoid exhausting it with single iteration (#5586)
This commit is contained in:
parent
ed656dccf5
commit
f53be46186
1 changed files with 3 additions and 3 deletions
|
@ -191,9 +191,9 @@ def set_build_environment_variables(pkg, env, dirty):
|
||||||
dirty (bool): Skip unsetting the user's environment settings
|
dirty (bool): Skip unsetting the user's environment settings
|
||||||
"""
|
"""
|
||||||
# Gather information about various types of dependencies
|
# Gather information about various types of dependencies
|
||||||
build_deps = pkg.spec.dependencies(deptype=('build', 'test'))
|
build_deps = set(pkg.spec.dependencies(deptype=('build', 'test')))
|
||||||
link_deps = pkg.spec.traverse(root=False, deptype=('link'))
|
link_deps = set(pkg.spec.traverse(root=False, deptype=('link')))
|
||||||
build_link_deps = list(build_deps) + list(link_deps)
|
build_link_deps = build_deps | link_deps
|
||||||
rpath_deps = get_rpath_deps(pkg)
|
rpath_deps = get_rpath_deps(pkg)
|
||||||
|
|
||||||
build_prefixes = [dep.prefix for dep in build_deps]
|
build_prefixes = [dep.prefix for dep in build_deps]
|
||||||
|
|
Loading…
Reference in a new issue