10000 Don't double bullet error messages in setup.py. · matplotlib/matplotlib@e12071a · GitHub
[go: up one dir, main page]

Skip to content

Commit e12071a

Browse files
committed
Don't double bullet error messages in setup.py.
print_message already adds a `*` at the beginning of each line.
1 parent c63fd62 commit e12071a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

setup.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,12 @@ def run(self):
206206
# Abort if any of the required packages can not be built.
207207
if required_failed:
208208
print_line()
209-
message = ("The following required packages can not "
210-
"be built: %s" %
211-
", ".join(x.name for x in required_failed))
209+
print_message("The following required packages can not be built: "
210+
"%s" % ", ".join(x.name for x in required_failed))
212211
for pkg in required_failed:
213-
pkg_help = pkg.install_help_msg()
214-
if pkg_help:
215-
message += "\n* " + pkg_help
216-
print_message(message)
212+
msg = pkg.install_get_help()
213+
if msg:
214+
print_message(msg)
217215
sys.exit(1)
218216

219217
# Now collect all of the information we need to build all of the

0 commit comments

Comments
 (0)
0