mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
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]
|
user_requested = set() # type: Set[str]
|
||||||
requirements = []
|
requirements = []
|
||||||
for req in root_reqs:
|
for req in root_reqs:
|
||||||
|
if not req.match_markers():
|
||||||
|
continue
|
||||||
if req.constraint:
|
if req.constraint:
|
||||||
# Ensure we only accept valid constraints
|
# Ensure we only accept valid constraints
|
||||||
reject_invalid_constraint_types(req)
|
reject_invalid_constraint_types(req)
|
||||||
|
|
Loading…
Reference in a new issue