From d9303c44305c72e3df4548a7fcea11f7e83b7ecd Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Fri, 10 Jun 2022 20:38:17 +0200 Subject: [PATCH 1/2] gh-93692: setup.py now reports successful builds if the build succeeded --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4c497346e8d7e2..e87da57a476c9c 100644 --- a/setup.py +++ b/setup.py @@ -536,9 +536,13 @@ def print_three_column(lst): print("%-*s %-*s %-*s" % (longest, e, longest, f, longest, g)) - if self.missing: + if not self.failed: print() print("Python build finished successfully!") + print() + + if self.missing: + print() print("The necessary bits to build these optional modules were not " "found:") print_three_column(self.missing) From 1d7989828ef616fc8ada8cb32601fa30d22924e2 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Thu, 23 Jun 2022 14:30:50 +0200 Subject: [PATCH 2/2] Just remove the message --- setup.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/setup.py b/setup.py index e87da57a476c9c..bba344c3af07ca 100644 --- a/setup.py +++ b/setup.py @@ -536,11 +536,6 @@ def print_three_column(lst): print("%-*s %-*s %-*s" % (longest, e, longest, f, longest, g)) - if not self.failed: - print() - print("Python build finished successfully!") - print() - if self.missing: print() print("The necessary bits to build these optional modules were not "