Please file issues (bug reports, questions, feature requests, etc.) on the GitHub repository. That's also the place for pull requests. If you're planning to make a big change, please file an issue first to avoid duplicate effort.
Outside of GitHub, most development discussion happens at the SIG Guest Languages Python subgroup meetings and the Guest Languages Zulip channel.
- Tools needed to build CPython (Make, Clang, etc.)
- Rust stable 1.71 or later and nightly 2023-07-27 or later, including the
wasm32-wasip1andwasm32-unknown-unknowntargets- Note that we currently use the
-Z build-stdCargo option to build thecomponentize-pyruntime with position-independent code (which is not the default forwasm32-wasip1) and this requires using a recent nightly build of Rust.
- Note that we currently use the
For Rust, something like this should work once you have rustup:
rustup update
rustup install nightly
rustup component add rust-src --toolchain nightly
rustup target add wasm32-wasip1 wasm32-unknown-unknown
rustup target add --toolchain nightly wasm32-wasip1 wasm32-unknown-unknownFirst, make sure you've got all the submodules cloned.
git submodule update --init --recursiveNext, install WASI-SDK 30 to /opt/wasi-sdk (alternatively, you can specify a
different location and reference it later using the WASI_SDK_PATH environment
variable). Replace arm64-linux with x86_64-linux, arm64-macos,
x86_64-macos, arm64-windows, or x86_64-windows below depending on your
architecure and OS, if necessary.
curl -LO https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-30/wasi-sdk-30.0-arm64-linux.tar.gz
tar xf wasi-sdk-30.0-arm64-linux.tar.gz
sudo mv wasi-sdk-30.0-arm64-linux /opt/wasi-sdk
export WASI_SDK_PATH=/opt/wasi-sdkFinally, build and run componentize-py.
cargo run --release -- --help