File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -822,6 +822,18 @@ def install(
822
822
self .install_succeeded = True
823
823
return
824
824
825
+ if self .legacy_install_reason == 81020 : # TODO issue id
826
+ deprecated (
827
+ reason = (
828
+ "Installing {} using the legacy 'setup.py install' "
829
+ "method, due to binaries being disabled for it." .
830
+ format (self .name )
831
+ ),
832
+ replacement = "--use-feature=always-install-via-wheel" ,
833
+ gone_in = None ,
834
+ issue = 81020 , # TODO issue id
835
+ )
836
+
825
837
# TODO: Why don't we do this for editable installs?
826
838
827
839
# Extend the list of global and install options passed on to
Original file line number Diff line number Diff line change @@ -80,10 +80,7 @@ def _should_build(
80
80
return True
81
81
82
82
if not check_binary_allowed (req ):
83
- logger .info (
84
- "Using legacy 'setup.py install' for %s, due to binaries "
85
- "being disabled for it." , req .name ,
86
- )
83
+ req .legacy_install_reason = 81020 # TODO issue id
87
84
return False
88
85
89
86
if not is_wheel_installed ():
You can’t perform that action at this time.
0 commit comments