Skip to content

Commit b2a1515

Browse files
committed
--dry-run is cool
1 parent d8cd93f commit b2a1515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pip/_internal/cli/cmdoptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ def check_dist_restriction(options: Values, check_target: bool = False) -> None:
9292
)
9393

9494
if check_target:
95-
if dist_restriction_set and not options.target_dir:
95+
if not options.dry_run and dist_restriction_set and not options.target_dir:
9696
raise CommandError(
9797
"Can not use any platform or abi specific options unless "
98-
"installing via '--target'"
98+
"installing via '--target' or using '--dry-run'"
9999
)
100100

101101

0 commit comments

Comments
 (0)