mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Evaluate dependencies for package without extras
This commit is contained in:
parent
b0ec2c0cd0
commit
1d22560c7d
1 changed files with 2 additions and 0 deletions
|
@ -198,6 +198,8 @@ class Distribution(BaseDistribution):
|
|||
req = Requirement(r)
|
||||
if not req.marker:
|
||||
yield req
|
||||
elif not extras and req.marker.evaluate({"extra": ""}):
|
||||
yield req
|
||||
elif any(req.marker.evaluate({"extra": extra}) for extra in extras):
|
||||
yield req
|
||||
|
||||
|
|
Loading…
Reference in a new issue