1
1
Fork 0
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:
Tzu-ping Chung 2021-12-05 20:55:12 +08:00
parent b0ec2c0cd0
commit 1d22560c7d

View file

@ -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