Ignore root dependencies with non-matching markers

This commit is contained in:
Tzu-ping Chung 2020-05-21 15:53:01 +08:00
parent 0a4629febb
commit 5ebf22248c
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ class Resolver(BaseResolver):
user_requested = set() # type: Set[str]
requirements = []
for req in root_reqs:
if not req.match_markers():
continue
if req.constraint:
# Ensure we only accept valid constraints
reject_invalid_constraint_types(req)