@@ -385,7 +385,7 @@ compiler just like building for :ref:`Unix <unix-compiling>` as well as:
385385
3863861. A C compiler that can target WebAssembly (for example, `WASI SDK `_)
3873872. A WASI host/runtime (for example, Wasmtime _)
388- 3. Python 3.11 or newer to run the build script (`` tomllib `` is required)
388+ 3. A system install of Python 3.11 or newer to run the build scripts
389389
390390All of this is provided in the WASI :ref: `dev container <using-a-container >`
391391(which you can select as an alternative container when using a
@@ -400,49 +400,6 @@ known to work.
400400 and their versions specified in the container and build scripts are
401401 tested via a :ref: `buildbot <buildbots >`.
402402
403- Installing prerequisites (Linux)
404- '''''''''''''''''''''''''''''''''
405-
406- Install Wasmtime via the `official installer <https://wasmtime.dev >`__ or your
407- system package manager. Download the `WASI SDK `_ release archive for your
408- platform, extract it, and set the ``WASI_SDK_PATH `` environment variable:
409-
410- .. code-block :: shell
411-
412- export WASI_SDK_PATH=/path/to/wasi-sdk
413-
414- Installing prerequisites (macOS)
415- '''''''''''''''''''''''''''''''''
416-
417- Install Wasmtime via Homebrew:
418-
419- .. code-block :: shell
420-
421- brew install wasmtime
422-
423- Download the `WASI SDK `_ release archive for macOS (``arm64-macos `` for Apple
424- Silicon, ``x86_64-macos `` for Intel). Before extracting, remove the macOS
425- quarantine attribute to prevent Gatekeeper from blocking the compiler binaries:
426-
427- .. code-block :: shell
428-
429- xattr -d com.apple.quarantine wasi-sdk-* .tar.gz
430- sudo tar -xzf wasi-sdk-* .tar.gz -C /opt
431- sudo mv /opt/wasi-sdk-* -macos /opt/wasi-sdk
432-
433- Then add to your shell profile (e.g. ``~/.zshrc ``):
434-
435- .. code-block :: shell
436-
437- export WASI_SDK_PATH=/opt/wasi-sdk
438-
439- .. note ::
440-
441- macOS ships with Python 3.9, which is too old to run the build script.
442- Use a newer Python via Homebrew (``brew install python ``) or
443- `uv <https://docs.astral.sh/uv/ >`__
444- (``uv run --python 3.13 -- python3 Platforms/WASI build ... ``).
445-
446403Building for WASI requires doing a cross-build where you have a *build * Python
447404to help produce a WASI build of CPython (technically it's a "host x host"
448405cross-build because the build Python is also the target Python while the host
0 commit comments