File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ Deprecate ``--build-option `` and ``--global-option ``. Users are invited to switch to
2
+ ``--config-settings ``.
Original file line number Diff line number Diff line change @@ -894,9 +894,14 @@ def check_legacy_setup_py_options(
894
894
has_build_options = _has_option (options , reqs , "build_options" )
895
895
has_global_options = _has_option (options , reqs , "global_options" )
896
896
if has_build_options or has_global_options :
897
+ deprecated (
898
+ reason = "--build-option and --global-option are deprecated." ,
899
+ issue = 11859 ,
900
+ replacement = "to use --config-settings" ,
901
+ gone_in = "23.3" ,
902
+ )
897
903
logger .warning (
898
904
"Implying --no-binary=:all: due to the presence of "
899
905
"--build-option / --global-option. "
900
- "Consider using --config-settings for more flexibility." ,
901
906
)
902
907
options .format_control .disallow_binaries ()
Original file line number Diff line number Diff line change @@ -834,7 +834,7 @@ def test_install_global_option(script: PipTestEnvironment) -> None:
834
834
assert "INITools==0.1\n " in result .stdout
835
835
assert not result .files_created
836
836
assert "Implying --no-binary=:all:" in result .stderr
837
- assert "Consider using --config-settings" in result .stderr
837
+ assert "A possible replacement is to use --config-settings" in result .stderr
838
838
839
839
840
840
def test_install_with_hacked_egg_info (
You can’t perform that action at this time.
0 commit comments