File tree 2 files changed +9
-1
lines changed 2 files changed +9
-1
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 @@ -922,11 +922,17 @@ def check_legacy_setup_py_options(
922
922
if not legacy_setup_py_options_present :
923
923
return
924
924
925
+ deprecated (
926
+ reason = "--build-option and --global-option are deprecated." ,
927
+ issue = 11859 ,
928
+ replacement = "to use --config-settings" ,
929
+ gone_in = "23.3" ,
930
+ )
931
+
925
932
options .format_control .disallow_binaries ()
926
933
logger .warning (
927
934
"Implying --no-binary=:all: due to the presence of "
928
935
"--build-option / --global-option / --install-option. "
929
- "Consider using --config-settings for more flexibility." ,
930
936
)
931
937
if mode == LegacySetupPyOptionsCheckMode .INSTALL and has_install_options :
932
938
if _install_option_ignored (options .install_options , reqs ):
You can’t perform that action at this time.
0 commit comments