Skip to content

Expose nightly and debug xbuildenvs in pyodide xbuildenv search and allow installing them via pyodide xbuildenv install#350

Merged
agriyakhetarpal merged 16 commits into
mainfrom
expose-nightly-and-debug-xbuildenvs
May 27, 2026
Merged

Expose nightly and debug xbuildenvs in pyodide xbuildenv search and allow installing them via pyodide xbuildenv install#350
agriyakhetarpal merged 16 commits into
mainfrom
expose-nightly-and-debug-xbuildenvs

Conversation

@agriyakhetarpal

@agriyakhetarpal agriyakhetarpal commented May 21, 2026

Copy link
Copy Markdown
Member

This PR adds --nightly and --debug fields based on changes made in https://github.com/pyodide/pyodide-build-environment-nightly, particularly based on the PRs I set up there (#72, #73, #74). It is a follow-up to #349.

The fields are exclusive; i.e., pyodide xbuildenv search and --all work the same as before, but including --nightly or --debug only displays them. Here is a table to summarise the changes:

Command Information
pyodide xbuildenv search Prints compatible stable xbuildenvs based on info in v2 spec
pyodide xbuildenv search --all Prints both compatible and incompatible stable xbuildenvs based on info in v2 spec
pyodide xbuildenv search --debug Prints compatible nightly-debug xbuildenvs. This can also include stable-debug xbuildenvs in the future
pyodide xbuildenv search --nightly Prints compatible nightly-release xbuildenvs
pyodide xbuildenv search --debug --nightly Prints compatible nightly-release and nightly-debug xbuildenvs
pyodide xbuildenv search -all --debug --nightly Prints both compatible and incompatible nightly-release and nightly-debug xbuildenvs

Of course, the order of --all, --debug, and --nightly doesn't matter.

We can install the xbuildenvs, via --nightly and --debug flags to pyodide xbuildenv install, after finding them through the search flag.

As a result, we now have three URLs:

The base GitHub Pages page for pyodide-build-environment-nightly is a basic HTML page with some brief information to accompany these changes: https://pyodide.github.io/pyodide-build-environment-nightly.

Additionally, I made two more changes:

  • The length of the MetadataView columns is now computed dynamically based on the length of the items inside them, to prevent breaking the table due to overflows.
  • For the pyodide-build version compatibility range, we now say 0.26.0 and later instead of 0.26.0 -, to be clearer about the ranges and mislead someone into thinking that the table is empty. The programmatic JSON output remains unchanged.

AI disclosure: I used Claude 4.5 Haiku to draft the tests.

Follow-ups we can do in here and Pyodide:

  • Here: add the ABI version to the table, somehow, in an "ABI version" column.
  • Pyodide: publish stable-debug releases as well, to complete the matrix of possible combinations, since we do nightly-debug? I reckon it'd be pretty useful.

@ryanking13 ryanking13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I am good with the overall direction, but added comments about some details.

Comment thread pyodide_build/cli/xbuildenv.py Outdated
Comment thread pyodide_build/cli/xbuildenv.py Outdated
Comment thread pyodide_build/views.py
agriyakhetarpal and others added 2 commits May 26, 2026 05:54
@agriyakhetarpal agriyakhetarpal changed the title Expose nightly and debug xbuildenvs in pyodide xbuildenv search Expose nightly and debug xbuildenvs in pyodide xbuildenv search and allow installing them via pyodide xbuildenv install May 26, 2026
Comment thread pyodide_build/cli/xbuildenv.py Outdated
Co-Authored-By: Gyeongjae Choi <def6488@gmail.com>

This comment was marked as resolved.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Comment thread pyodide_build/views.py
Comment thread CHANGELOG.md Outdated
Comment thread pyodide_build/cli/xbuildenv.py
@agriyakhetarpal agriyakhetarpal merged commit c2dab73 into main May 27, 2026
12 checks passed
@agriyakhetarpal agriyakhetarpal deleted the expose-nightly-and-debug-xbuildenvs branch May 27, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants