# Important links - [`os-wasi` label](https://github.com/python/cpython/labels/OS-wasi) - [Devcontainer](https://github.com/python/cpython-devcontainers) ([image](https://github.com/python/cpython-devcontainers/pkgs/container/devcontainer)) # Legend - πŸ₯§ beginner-friendly ("as easy as pie") - πŸ›‘ Blocked by something # Plans - [ ] Separate WASI container ^wasi-container - [x] [Remove from dev container](https://github.com/python/cpython-devcontainers/pull/55) - [x] [Create the WASI container](https://github.com/python/cpython-devcontainers/pull/56) (waiting on review) - [x] Push new containers - [ ] `.devcontainer/WASI` - [ ] Update the devguide - [ ] πŸ₯§ Support WASI SDK 25 (26 and 27 have a [bug](https://github.com/WebAssembly/wasi-libc/issues/617)) - [ ] PR - [ ] `wasi` - [ ] CI - [ ] Update the [[#^wasi-container]] ^50a277 - [ ] Get [[#^buildbot-on-container|buildbots moved to the container]] - [ ] Move `Tools/wasm/wasi` to the top-level? - [ ] Open discussion about a top-level `Platforms/` directory - [ ] Get the Buildbot using the [[#^wasi-container]] ^buildbot-on-container - [ ] πŸ₯§ Test lowering the stack size to 5 MiB - [ ] `Tools/wasm/wasi` - [ ] `configure.ac`? - [ ] `Makefile.pre.in` ? - [ ] PEP to specify WASI SDK compatibility expectations - [ ] Have `wasi/` check for `wasi-sdk/VERSION` -- [25 and later](https://github.com/WebAssembly/wasi-sdk/issues/471) -- when using `/opt/wasi-sdk` and warn when it doesn't match the expected version - [x] Use `/opt/wasi-sdk-NN` automatically based on what the appropriate version is ([PR](https://github.com/python/cpython/pull/137244)) ^wasi-sdk-NN - [x] Update [[#^wasi-container]] to ship with all relevant WASI SDK versions - [ ] πŸ›‘ [Support `wasm32-wasip3`](https://github.com/python/cpython/issues/121634) (skipping p2; blocked on WASI 0.3) - [x] Ability to specify host triple - [x] Find out if `wasip2` is compatible w/ preview1 hosts - [ ] buildbot - [ ] PEP 11 - [ ] Consider providing a [wasmtime config](https://docs.wasmtime.dev/cli-options.html#cli-options-using-toml-file) over hard-coding flags for `python.wasm` - [ ] Release binaries - [ ] PEP for a wheel tag ([discussion](https://bytecodealliance.zulipchat.com/#narrow/channel/219900-wasi/topic/Platform.20tags.20for.20packages.20targeting.20WASI/with/516694780)) - [ ] See if we can use `--enable-wasm-dynamic-linking` so [componentize-py](https://github.com/bytecodealliance/componentize-py) doesn't have to [patch it](https://github.com/dicej/cpython/commit/118e9d8eeabb6345d57295f6cec1616694eacbc2#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810R1269-R1272) - [ ] πŸ›‘ Move `wasi.py` functionality to `wasi/__main__.py` in buildbots (>= 3.14; waiting on [[#^buildbot-on-container]]) - [ ] `wasi package` - [ ] Research what should be shipped for building extensions - [ ] See if [exporting binaries](https://docs.docker.com/build/building/export/) from the WASI container is possible - [ ] [External dependencies](https://github.com/python/cpython-source-deps) via `wasi externals` - [ ] Figure out what version policy we want (i.e. always latest or freeze versions like Windows builds?) - [ ] [zlib](https://github.com/python/cpython/issues/91246) (and potentially undoing part of https://github.com/python/cpython/pull/130297) - [ ] bzip2 - [ ] xz - [`get_externals.bat`](https://github.com/python/cpython/blob/5592399313c963c110280a7c98de974889e1d353/PCbuild/get_externals.bat#L61) - [`python.props`](https://github.com/python/cpython/blob/5592399313c963c110280a7c98de974889e1d353/PCbuild/python.props#L73) - [`externals.spdx.json`](https://github.com/python/cpython/blob/5592399313c963c110280a7c98de974889e1d353/Misc/externals.spdx.json#L160) - [ ] sqlite - [x] OpenSSL (not safe as WebAssembly doesn't have constant time ops) - [ ] πŸ›‘ Networking under WASI 0.3 (blocked on threading in WASI 0.3 being released) - [Joel's hack](https://github.com/dicej/cpython/commit/118e9d8eeabb6345d57295f6cec1616694eacbc2) - Any tests requiring threads probably won't work - See the [headers in wasi-libc](https://github.com/WebAssembly/wasi-libc/tree/main/libc-top-half/musl/include) for what can be turned on - Will probably require tweaking `config.site` - [ ] [Create a GitHub Action to install WASI SDK](https://github.com/WebAssembly/wasi-sdk/issues/468) (? Might not be necessary w/ a container image used in CI) - [ ] πŸ₯§ Make sure build details are still relevant - [ ] Check if all the flags set in `configure.ac` are necessary - [ ] Check what `__wasi__` usage can be removed - [ ] [Check](https://github.com/python/cpython/issues/115982) that the [site config](https://github.com/python/cpython/blob/main/Tools/wasm/config.site-wasm32-wasi) is up-to-date - [ ] [[HTTP fetch API]]