From bfaebd96b985fc39113fa489d580910b78261291 Mon Sep 17 00:00:00 2001 From: Oliver Freund Date: Fri, 28 Oct 2022 22:59:12 -0500 Subject: [PATCH 1/2] changed the description of --install_options, since the option is now deprecated --- news/10265.bugfix.rst | 1 + src/pip/_internal/cli/cmdoptions.py | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 news/10265.bugfix.rst diff --git a/news/10265.bugfix.rst b/news/10265.bugfix.rst new file mode 100644 index 00000000000..477eb9753fb --- /dev/null +++ b/news/10265.bugfix.rst @@ -0,0 +1 @@ +Fixed the description of the option "--install-options" in the documentation diff --git a/src/pip/_internal/cli/cmdoptions.py b/src/pip/_internal/cli/cmdoptions.py index b4e2560dea2..d62954cca7d 100644 --- a/src/pip/_internal/cli/cmdoptions.py +++ b/src/pip/_internal/cli/cmdoptions.py @@ -825,11 +825,8 @@ def _handle_config_settings( dest="install_options", action="append", metavar="options", - help="Extra arguments to be supplied to the setup.py install " - 'command (use like --install-option="--install-scripts=/usr/local/' - 'bin"). Use multiple --install-option options to pass multiple ' - "options to setup.py install. If you are using an option with a " - "directory path, be sure to use absolute path.", + help="This option is deprecated. Using this option with location-changing options may cause unexpected behavior. " + "Use pip-level options like --user, --prefix, --root, and --target", ) build_options: Callable[..., Option] = partial( From 1304e3e8d4c9ba2acfa06a37ecbfbd2eab2b0554 Mon Sep 17 00:00:00 2001 From: Oliver Freund Date: Sat, 29 Oct 2022 17:21:51 -0500 Subject: [PATCH 2/2] Fixed lint errors (line too long) --- src/pip/_internal/cli/cmdoptions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pip/_internal/cli/cmdoptions.py b/src/pip/_internal/cli/cmdoptions.py index d62954cca7d..661c489c73e 100644 --- a/src/pip/_internal/cli/cmdoptions.py +++ b/src/pip/_internal/cli/cmdoptions.py @@ -825,8 +825,9 @@ def _handle_config_settings( dest="install_options", action="append", metavar="options", - help="This option is deprecated. Using this option with location-changing options may cause unexpected behavior. " - "Use pip-level options like --user, --prefix, --root, and --target", + help="This option is deprecated. Using this option with location-changing " + "options may cause unexpected behavior. " + "Use pip-level options like --user, --prefix, --root, and --target.", ) build_options: Callable[..., Option] = partial(