Skip to content

Commit 17629a3

Browse files
Clean up
1 parent 355e7ea commit 17629a3

File tree

1 file changed

+1
-44
lines changed

1 file changed

+1
-44
lines changed

getting-started/setup-building.rst

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ compiler just like building for :ref:`Unix <unix-compiling>` as well as:
385385

386386
1. A C compiler that can target WebAssembly (for example, `WASI SDK`_)
387387
2. 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

390390
All 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-
446403
Building for WASI requires doing a cross-build where you have a *build* Python
447404
to help produce a WASI build of CPython (technically it's a "host x host"
448405
cross-build because the build Python is also the target Python while the host

0 commit comments

Comments
 (0)