Skip to content

Commit bc96473

Browse files
committed
Ignore optional (extra) dependencies in pip check
This preserves the current behaviour and avoids failures due to optional dependencies in the graph.
1 parent ba38c33 commit bc96473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/operations/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def check_package_set(
7575
if name not in package_set:
7676
missed = True
7777
if req.marker is not None:
78-
missed = req.marker.evaluate()
78+
missed = req.marker.evaluate({"extra": ""})
7979
if missed:
8080
missing_deps.add((name, req))
8181
continue

0 commit comments

Comments
 (0)