Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py only reports successful builds if one or more stdlib modules are missing #93692

Closed
erlend-aasland opened this issue Jun 10, 2022 · 2 comments · Fixed by #93693
Closed

setup.py only reports successful builds if one or more stdlib modules are missing #93692

erlend-aasland opened this issue Jun 10, 2022 · 2 comments · Fixed by #93693
Labels
3.12 build type-bug

Comments

@erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Jun 10, 2022

"Python build finished successfully!" is only printed if there were missing modules:

cpython/setup.py

Lines 539 to 547 in cf730b5

if self.missing:
print()
print("Python build finished successfully!")
print("The necessary bits to build these optional modules were not "
"found:")
print_three_column(self.missing)
print("To find the necessary bits, look in setup.py in"
" detect_modules() for the module's name.")
print()

Either we print it every time the build succeeds:

diff --git a/setup.py b/setup.py
index 4c497346e8..e87da57a47 100644
--- a/setup.py
+++ b/setup.py
@@ -538,5 +538,9 @@ def print_three_column(lst):
 
-        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 "

Or we just remove that line from setup.py.

I'm fine with either.

Originally reported by @izumiberat in #93659 (comment)

@erlend-aasland
Copy link
Contributor Author

@erlend-aasland erlend-aasland commented Jun 10, 2022

cc. @tiran

@erlend-aasland
Copy link
Contributor Author

@erlend-aasland erlend-aasland commented Jun 10, 2022

Come to think of it, we might want to adjust the "To find the necessary bits, look in setup.py in detect_modules() for the module's name." also.

erlend-aasland added a commit to erlend-aasland/cpython that referenced this issue Jun 10, 2022
@AA-Turner AA-Turner added type-bug build 3.12 labels Jun 10, 2022
erlend-aasland added a commit that referenced this issue Jun 24, 2022
…93693)

The message was only emitted when the build succeeded _and_ there were
missing modules.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 24, 2022
…up.py (pythonGH-93693)

The message was only emitted when the build succeeded _and_ there were
missing modules.
(cherry picked from commit ab077d1)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 24, 2022
…up.py (pythonGH-93693)

The message was only emitted when the build succeeded _and_ there were
missing modules.
(cherry picked from commit ab077d1)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
miss-islington added a commit that referenced this issue Jun 24, 2022
…H-93693)

The message was only emitted when the build succeeded _and_ there were
missing modules.
(cherry picked from commit ab077d1)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
miss-islington added a commit that referenced this issue Jun 24, 2022
…H-93693)

The message was only emitted when the build succeeded _and_ there were
missing modules.
(cherry picked from commit ab077d1)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 build type-bug
Projects
None yet
2 participants