Skip to content

Add a wasi package command#154510

Open
brettcannon wants to merge 48 commits into
python:mainfrom
brettcannon:wasi-package
Open

Add a wasi package command#154510
brettcannon wants to merge 48 commits into
python:mainfrom
brettcannon:wasi-package

Conversation

@brettcannon

Copy link
Copy Markdown
Member

This introduces a wasi package command to Platforms/WASI/ that creates a .tar.xz file as a WASI distribution. This did entail a refactoring to share code between this and the build command. I tried to keep start-up costs down so --help was snappy.

This is very much an MVP for the command itself and the resulting .tar.xz file. Future plans for the command include:

  • Getting tests that fail from the distribution passing (including the warning in the REPL about not running from --prefix)
  • A --build flag so that wasi package can go from checkout to .tar.xz in one command (including using flags that should be used when building for a distribution)
  • A container file that uses the WASI dev container so the packaging requires no toolchain installation beyond Docker/podman

There should probably also be some testing/CI of the distribution at some point.

@brettcannon brettcannon self-assigned this Jul 22, 2026
@brettcannon
brettcannon requested a review from emmatyping as a code owner July 22, 2026 22:33
@brettcannon brettcannon added the build The build process and cross-build label Jul 22, 2026
@brettcannon brettcannon reopened this Jul 22, 2026
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.

1 participant