Don't redundantly check for providers of non-virtuals.
This commit is contained in:
parent
55f85f2307
commit
9ccaf6474d
@ -2060,6 +2060,9 @@ def _merge_dependency(
|
|||||||
index = ProviderIndex([dep], restrict=True)
|
index = ProviderIndex([dep], restrict=True)
|
||||||
items = list(spec_deps.items())
|
items = list(spec_deps.items())
|
||||||
for name, vspec in items:
|
for name, vspec in items:
|
||||||
|
if not vspec.virtual:
|
||||||
|
continue
|
||||||
|
|
||||||
if index.providers_for(vspec):
|
if index.providers_for(vspec):
|
||||||
vspec._replace_with(dep)
|
vspec._replace_with(dep)
|
||||||
del spec_deps[vspec.name]
|
del spec_deps[vspec.name]
|
||||||
|
Loading…
Reference in New Issue
Block a user