gh-145455: Show output of blurb & sphinx-build version commands#145457
Merged
encukou merged 1 commit intopython:mainfrom Mar 3, 2026
Merged
gh-145455: Show output of blurb & sphinx-build version commands#145457encukou merged 1 commit intopython:mainfrom
encukou merged 1 commit intopython:mainfrom
Conversation
In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Switch `blurb` to output a version on a single line (`--version` rather than `help`), and don't redirect stderr, to show warnings and failures. Also, don't redirect stdout. This results in two extra lines with version info, which get drowned in typical Sphinx output, and can be helpful when debugging.
hugovk
approved these changes
Mar 3, 2026
Member
hugovk
left a comment
There was a problem hiding this comment.
Thanks!
I think this is worth backporting to security branches as well.
This first came up in a security branch, and it's more likely for their old dependencies to break, and this fix will help debug.
Member
Author
|
Yeah. |
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Mar 3, 2026
…pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
|
GH-145461 is a backport of this pull request to the 3.14 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Mar 3, 2026
…pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
|
GH-145462 is a backport of this pull request to the 3.13 branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In gh-145455, an outdated dependency caused an import error that was not printed out (
2>&1); the message instead said that the tools are missing.Don't redirect stderr, to show warnings and failures.
Also, switch
blurbto output a version on a single line (--versionrather thanhelp), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging.📚 Documentation preview 📚: https://cpython-previews--145457.org.readthedocs.build/