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 — gh-151929: Add pythoninfo commands to Platforms/WASI by vstinner · Pull Request #152136 · python/cpython

Conversation

@vstinner

@vstinner vstinner commented Jun 25, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

The "build" command now runs also "pythoninfo-build" and "pythoninfo-host" commands.

GitHub Action "WASI":

  • Run "pythoninfo-build" command.
  • Remove unused and outdated CROSS_BUILD_PYTHON environment variable.

If no subcommand is provided, display the help.

  • Issue: "wasm32-wasi 3.x" buildbot times out on building Python #151929

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vstinner
pythongh-151929: Add pythoninfo commands to Platforms/WASI
9a62314
The "build" command now runs also "pythoninfo-build" and
"pythoninfo-host" commands.

GitHub Action "WASI":

* Run "pythoninfo-build" command.
* Remove unused and outdated CROSS_BUILD_PYTHON environment variable.

If no subcommand is provided, display the help.
@vstinner
vstinner requested review from AA-Turner, brettcannon, emmatyping, ezio-melotti, hugovk and savannahostrowski as code owners June 25, 2026 00:00
@vstinner vstinner added the skip news label Jun 25, 2026
@vstinner
vstinner requested review from JacobCoffee, itamaro and webknjaz as code owners June 25, 2026 00:00
@vstinner vstinner added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Jun 25, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Jun 25, 2026
"wasm32-wasi 3.x" buildbot times out on building Python #151929
Closed
@bedevere-app bedevere-app Bot added the awaiting core review label Jun 25, 2026
@vstinner
Run prek to reformat __main__.py
9641edb
@vstinner

vstinner commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

The WASI CI job completed successfully and it now has two "pythoninfo" steps:

  • Display build info of the build Python
  • Display build info of the host/WASI Python

@brettcannon: Would you mind to review this change? Does it look like a reasonable addition?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner

vstinner commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

"Display build info of the build Python" logs the boot ID, machine ID and uptime:

linux.boot_id: 151ef235-1c59-42b9-9361-6ce6e01cd15e
linux.machine_id: c1e1a6c26d1e4cc2ba4abab80d428183
linux.uptime: 0:08:36
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner vstinner added the needs backport to 3.13 only security fixes label Jun 25, 2026
@vstinner

vstinner commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

My plan is to backport this change to 3.13, 3.14 and 3.15 branches, and then update the buildbot configuration to call these new commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vstinner added 2 commits June 25, 2026 16:51
@vstinner
Renable GHA steps
a1d1c4b
Replace "host" with "host/WASI Python", as done in Platforms/WASI
command line.
@vstinner
Merge branch 'main' into wasi_pythoninfo
eaeabb6
@vstinner

vstinner commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

I wrote a similar change for Emscripten: #152210.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner vstinner mentioned this pull request Jun 25, 2026
gh-151929: Add pythoninfo-build command to Platforms/emscripten #152210
Merged
@vstinner
Update docstring
013e20f
brettcannon
brettcannon approved these changes Jun 25, 2026
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Jun 25, 2026
@vstinner
vstinner merged commit 7c81637 into python:main Jun 25, 2026
31 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@vstinner
vstinner deleted the wasi_pythoninfo branch June 25, 2026 17:15
@bedevere-app bedevere-app Bot removed the awaiting merge label Jun 25, 2026
@miss-islington-app

miss-islington-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app

miss-islington-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 7c8163719cd23d41daeaed0b243be45de3e82e05 3.14
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app miss-islington-app Bot assigned vstinner Jun 25, 2026
@miss-islington-app

miss-islington-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 7c8163719cd23d41daeaed0b243be45de3e82e05 3.13
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app

bedevere-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

GH-152222 is a backport of this pull request to the 3.15 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Jun 25, 2026
vstinner added a commit that referenced this pull request Jun 25, 2026
@miss-islington @vstinner
[3.15] gh-151929: Add pythoninfo commands to Platforms/WASI (GH-152136)…
59e54f5
… (#152222)

gh-151929: Add pythoninfo commands to Platforms/WASI (GH-152136)

The "build" command now also runs "pythoninfo-build" and
"pythoninfo-host" commands.

If no subcommand is provided, display the help.

GitHub Action "WASI":

* Add "pythoninfo-build" and "pythoninfo-host" commands.
* Remove unused and outdated CROSS_BUILD_PYTHON environment variable.
(cherry picked from commit 7c81637)

Co-authored-by: Victor Stinner <[email protected]>
@bedevere-app

bedevere-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

GH-152224 is a backport of this pull request to the 3.14 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 25, 2026
@vstinner vstinner removed the needs backport to 3.13 only security fixes label Jun 25, 2026
@bedevere-app

bedevere-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

GH-152224 is a backport of this pull request to the 3.14 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vstinner added a commit that referenced this pull request Jun 25, 2026
@vstinner
[3.14] gh-151929: Add pythoninfo commands to Tools/wasm/wasi (#152136) (
6426887
#152224)

* gh-151929: Add pythoninfo commands to Platforms/WASI (#152136)

The "build-python", "build-host" and "build" commands now also run
"pythoninfo-build" and "pythoninfo-host" commands.

If no subcommand is provided, display the help.

GitHub Action "WASI":

* Add "pythoninfo-build" and "pythoninfo-host" commands.
* Remove unused and outdated CROSS_BUILD_PYTHON environment variable.

(cherry picked from commit 7c81637)
vstinner added a commit that referenced this pull request Jun 25, 2026
@vstinner
[3.13] gh-151929: Add pythoninfo commands to Tools/wasm/wasi.py (#152136
d740050
) (#152224) (#152226)

The "build" command now also runs "pythoninfo-build" and
"pythoninfo-host" commands.

If no subcommand is provided, display the help.

GitHub Action "WASI":

* Add "pythoninfo-build" command.
* Remove unused and outdated CROSS_BUILD_PYTHON environment variable.

(cherry picked from commit 7c81637)
(cherry picked from commit 6426887)
@vstinner

vstinner commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

I deployed a new buildbot configuration using the two new WASI "pythoninfo" commands. It works as expected! Example:

system.boot_id: 37d4e586-62cc-46b6-919b-53703418793b
system.uptime: 2 days, 0:37:00

See: python/buildmaster-config#746 (comment)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jun 30, 2026
gh-152711: Add pythoninfo-build command to Platforms/Android #152713
Merged
gh-152715: Add pythoninfo-build command to Platforms/Apple #152716
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@brettcannon brettcannon brettcannon approved these changes
@emmatyping emmatyping Awaiting requested review from emmatyping emmatyping is a code owner
@savannahostrowski savannahostrowski Awaiting requested review from savannahostrowski savannahostrowski is a code owner
@ezio-melotti ezio-melotti Awaiting requested review from ezio-melotti ezio-melotti is a code owner
@hugovk hugovk Awaiting requested review from hugovk hugovk is a code owner
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@webknjaz webknjaz Awaiting requested review from webknjaz webknjaz is a code owner
@itamaro itamaro Awaiting requested review from itamaro itamaro is a code owner
@JacobCoffee JacobCoffee Awaiting requested review from JacobCoffee JacobCoffee is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@vstinner vstinner

Labels

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@vstinner @brettcannon
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.
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.