From 184e4826269da5caa73c8f4114fb00cd1678c075 Mon Sep 17 00:00:00 2001 From: Damian Shaw Date: Wed, 20 Sep 2023 18:48:52 -0400 Subject: [PATCH 1/2] Clarify --prefer-binary --- src/pip/_internal/cli/cmdoptions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pip/_internal/cli/cmdoptions.py b/src/pip/_internal/cli/cmdoptions.py index 64bc59bbd66..84b40a8fc52 100644 --- a/src/pip/_internal/cli/cmdoptions.py +++ b/src/pip/_internal/cli/cmdoptions.py @@ -670,7 +670,10 @@ def prefer_binary() -> Option: dest="prefer_binary", action="store_true", default=False, - help="Prefer older binary packages over newer source packages.", + help=( + "Prefer binary packages over source packages, even if the " + "source packages are newer." + ), ) From 677c3eed9fd6c150d9ea3781442da781f1d65f2e Mon Sep 17 00:00:00 2001 From: Damian Shaw Date: Wed, 20 Sep 2023 18:53:33 -0400 Subject: [PATCH 2/2] Add news --- news/12122.doc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/12122.doc.rst diff --git a/news/12122.doc.rst b/news/12122.doc.rst new file mode 100644 index 00000000000..49a3308a25c --- /dev/null +++ b/news/12122.doc.rst @@ -0,0 +1 @@ +Clarify --prefer-binary in CLI and docs