File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change
1
+ Avoid unnecessary message about the wheel package not being installed
2
+ when a wheel would not have been built. Additionally, clarify the message.
Original file line number Diff line number Diff line change @@ -69,14 +69,6 @@ def _should_build(
69
69
# From this point, this concerns the pip install command only
70
70
# (need_wheel=False).
71
71
72
- if not req .use_pep517 and not is_wheel_installed ():
73
- # we don't build legacy requirements if wheel is not installed
74
- logger .info (
75
- "Could not build wheels for %s, "
76
- "since package 'wheel' is not installed." , req .name ,
77
- )
78
- return False
79
-
80
72
if req .editable or not req .source_dir :
81
73
return False
82
74
@@ -87,6 +79,14 @@ def _should_build(
87
79
)
88
80
return False
89
81
82
+ if not req .use_pep517 and not is_wheel_installed ():
83
+ # we don't build legacy requirements if wheel is not installed
84
+ logger .info (
85
+ "Using legacy setup.py install for %s, "
86
+ "since package 'wheel' is not installed." , req .name ,
87
+ )
88
+ return False
89
+
90
90
return True
91
91
92
92
You can’t perform that action at this time.
0 commit comments