Skip to content

[3.12] gh-145455: Show output of blurb & sphinx-build version commands (GH-145457)#145490

Open
miss-islington wants to merge 1 commit intopython:3.12from
miss-islington:backport-f1de65b-3.12
Open

[3.12] gh-145455: Show output of blurb & sphinx-build version commands (GH-145457)#145490
miss-islington wants to merge 1 commit intopython:3.12from
miss-islington:backport-f1de65b-3.12

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 4, 2026

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


📚 Documentation preview 📚: https://cpython-previews--145490.org.readthedocs.build/

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants