summaryrefslogtreecommitdiffstats
path: root/Tools/wasm
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2022-07-25 07:42:50 (GMT)
committerGitHub <noreply@github.com>2022-07-25 07:42:50 (GMT)
commit310f94871a923f6cf3dc9259e732ce2376578b26 (patch)
tree3b1fe5b819ca9cf58b275a10f135cd758b3a55b6 /Tools/wasm
parentea5ed0ba51c10cfdde7651a475438551964dfdfc (diff)
downloadcpython-310f94871a923f6cf3dc9259e732ce2376578b26.zip
cpython-310f94871a923f6cf3dc9259e732ce2376578b26.tar.gz
cpython-310f94871a923f6cf3dc9259e732ce2376578b26.tar.bz2
gh-95205: Improve wasm README (#95206)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Tools/wasm')
-rw-r--r--Tools/wasm/README.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/Tools/wasm/README.md b/Tools/wasm/README.md
index 40f23a3..b9d773b 100644
--- a/Tools/wasm/README.md
+++ b/Tools/wasm/README.md
@@ -23,16 +23,20 @@ to a repository checkout.
Christian Heimes maintains a container image with Emscripten SDK, Python
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
-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
-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
+From within the container, run the following commands:
+
```shell
mkdir -p builddir/build
pushd builddir/build