Skip to content

Commit aa911c6

Browse files
committed
By default, provide a much more concise error message.
Fixes #4984
1 parent f37845b commit aa911c6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setuptools/command/editable_wheel.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,12 @@ def run(self) -> None:
138138

139139
self._create_wheel_file(bdist_wheel)
140140
except Exception:
141-
traceback.print_exc()
142141
project = self.distribution.name or self.distribution.get_name()
143-
_DebuggingTips.emit(project=project)
142+
if os.environ.get('SETUPTOOLS_INTERNAL_DEBUG'):
143+
traceback.print_exc()
144+
_DebuggingTips.emit(project=project)
145+
else:
146+
print("An error occurred building editable wheel for", project)
144147
raise
145148

146149
def _ensure_dist_info(self):

0 commit comments

Comments
 (0)