GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — setup.py only reports successful builds if one or more stdlib modules are missing · Issue #93692 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
#93693
Closed
setup.py only reports successful builds if one or more stdlib modules are missing#93692
#93693
Copy link
Labels
3.12only security fixesonly security fixesbuildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@erlend-aasland
erlend-aasland
opened on Jun 10, 2022
Issue body actions

"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)

Activity

  1. erlend-aasland commented on Jun 10, 2022

    @erlend-aasland
    erlend-aasland
    on Jun 10, 2022
    ContributorAuthor
    More actions

    cc. @tiran

  2. erlend-aasland commented on Jun 10, 2022

    @erlend-aasland
    erlend-aasland
    on Jun 10, 2022
    ContributorAuthor
    More actions

    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.

  3. erlend-aasland
    added a commit that references this issue on Jun 10, 2022

    pythongh-93692: setup.py now reports successful builds if the build s…

    d9303c4
  4. AA-Turner
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    buildThe build process and cross-buildThe build process and cross-build
    3.12only security fixesonly security fixes
    on Jun 10, 2022
  5. erlend-aasland
    closed this as completedin #93693on Jun 24, 2022
  6. erlend-aasland
    added a commit that references this issue on Jun 24, 2022

    gh-93692: remove "build finished successfully" message from setup.py (#…

    ab077d1
  7. miss-islington
    added 4 commits that reference this issue on Jun 24, 2022

    pythongh-93692: remove "build finished successfully" message from set…

    17354a7

    pythongh-93692: remove "build finished successfully" message from set…

    7b7a520

    gh-93692: remove "build finished successfully" message from setup.py (G…

    e4d72d1

    gh-93692: remove "build finished successfully" message from setup.py (G…

    92d32b9
  8. serhiy-storchaka
    added a commit that references this issue on Jun 26, 2022

    Revert 30935 defer bpo45162 to 312 (#94285)

    1ffde3e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixesonly security fixesbuildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.