From 90cf4dc64ace2753c465605e2dc2c934270c0fb2 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 6 Jun 2025 10:36:18 +0200 Subject: [PATCH 1/2] Switch to non-deprecated Tools/wasm/wasi --- getting-started/setup-building.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index aa783f24e..637597153 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -411,7 +411,7 @@ Python you have installed on your machine): .. code-block:: shell - $ python3 Tools/wasm/wasi.py build --quiet -- --config-cache --with-pydebug + $ python3 Tools/wasm/wasi build --quiet -- --config-cache --with-pydebug That single command will configure and build both the build Python and the WASI build in ``cross-build/build`` and ``cross-build/wasm32-wasi``, @@ -422,10 +422,10 @@ is a convenience wrapper around the following commands: .. code-block:: shell - $ python Tools/wasm/wasi.py configure-build-python --quiet -- --config-cache --with-pydebug - $ python Tools/wasm/wasi.py make-build-python --quiet - $ python Tools/wasm/wasi.py configure-host --quiet -- --config-cache - $ python Tools/wasm/wasi.py make-host --quiet + $ python Tools/wasm/wasi configure-build-python --quiet -- --config-cache --with-pydebug + $ python Tools/wasm/wasi make-build-python --quiet + $ python Tools/wasm/wasi configure-host --quiet -- --config-cache + $ python Tools/wasm/wasi make-host --quiet .. note:: From bf9e6bd75651fe7061803da5d23bd0beee5f644e Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Sat, 7 Jun 2025 09:12:53 +0200 Subject: [PATCH 2/2] Add instructions for older versions --- getting-started/setup-building.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index 637597153..62da6b3fb 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -413,6 +413,8 @@ Python you have installed on your machine): $ python3 Tools/wasm/wasi build --quiet -- --config-cache --with-pydebug +For Python 3.14 and earlier, use ``Tools/wasm/wasi.py`` instead. + That single command will configure and build both the build Python and the WASI build in ``cross-build/build`` and ``cross-build/wasm32-wasi``, respectively.