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
+ "{} was installed 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 @@ -72,10 +72,7 @@ def _should_build(
72
72
return True
73
73
74
74
if not check_binary_allowed (req ):
75
- logger .info (
76
- "Using legacy 'setup.py install' for %s, due to binaries "
77
- "being disabled for it." , req .name ,
78
- )
75
+ req .legacy_install_reason = 81020 # TODO issue id
79
76
return False
80
77
81
78
if not is_wheel_installed ():
You can’t perform that action at this time.
0 commit comments