gh-95205: Improve wasm README (GH-95206)

Co-authored-by: Christian Heimes <christian@python.org>
(cherry picked from commit 310f94871a)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
Miss Islington (bot) 2022-07-25 02:52:47 -07:00 committed by GitHub
parent 3ec139fa4d
commit df95ad3d72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,16 +23,20 @@ to a repository checkout.
Christian Heimes maintains a container image with Emscripten SDK, Python Christian Heimes maintains a container image with Emscripten SDK, Python
build dependencies, WASI-SDK, wasmtime, and several additional tools. build dependencies, WASI-SDK, wasmtime, and several additional tools.
From within your local CPython repo clone, run one of the following commands:
``` ```
# Fedora, RHEL, CentOS # Fedora, RHEL, CentOS
podman run --rm -ti -v $(pwd):/python-wasm/cpython:Z quay.io/tiran/cpythonbuild:emsdk3 podman run --rm -ti -v $(pwd):/python-wasm/cpython:Z -w /python-wasm/cpython quay.io/tiran/cpythonbuild:emsdk3
# other # other
docker run --rm -ti -v $(pwd):/python-wasm/cpython quay.io/tiran/cpythonbuild:emsdk3 docker run --rm -ti -v $(pwd):/python-wasm/cpython -w /python-wasm/cpython quay.io/tiran/cpythonbuild:emsdk3
``` ```
### Compile a build Python interpreter ### Compile a build Python interpreter
From within the container, run the following commands:
```shell ```shell
mkdir -p builddir/build mkdir -p builddir/build
pushd builddir/build pushd builddir/build