You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guests/python/README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,35 @@ just build-release
16
16
## Python Version
17
17
We currently bundle [Python 3.14.0], [build for WASI](https://docs.python.org/3/library/intro.html#webassembly-platforms).
18
18
19
+
## Custom CPython Configuration
20
+
You can configure the build to use a custom CPython source by setting the following environment variables:
21
+
22
+
23
+
-`PYTHON_SDK_BASE_URL`: Base URL to download the Python WASI SDK artifacts. This
24
+
should point to a location containing both the main SDK archive and the build
25
+
artifacts archive.
26
+
-`PYTHON_SDK_URL`: URL to download the main Python WASI SDK archive. This
27
+
should point to an artifact containing the pre-built Python runtime and
28
+
standard library for WASI. Will override `PYTHON_SDK_BASE_URL` if set.
29
+
-`BUILD_PYTHON_SDK_URL`: URL to download the build artifacts archive. This
30
+
should point to an artifact containing the compiled Python libraries (like
31
+
`libpython3.14.a`, `libmpdec.a`, etc.) needed for static linking. Will override
32
+
`PYTHON_SDK_BASE_URL` if set.
33
+
34
+
If these environment variables are not set, the build will use the default URLs pointing to the official [CPython WASI build releases](https://github.com/brettcannon/cpython-wasi-build/releases).
0 commit comments