mirror of https://github.com/pypa/pip
Ignore root dependencies with non-matching markers
This commit is contained in:
parent
0a4629febb
commit
5ebf22248c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue