Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion guests/python/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Links:
- <https://github.com/python/cpython/tree/main/Tools/wasm>
- <https://devguide.python.org/getting-started/setup-building/#wasi>
- <https://github.com/psf/webassembly>
- <https://github.com/brettcannon/cpython-wasi-build/releases>
- <https://github.com/influxdata/cpython-wasi-build/releases>

Pros:
- Official project, so it has a somewhat stable future and it is easier to get buy-in from the community
Expand Down
8 changes: 4 additions & 4 deletions guests/python/Justfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
PYTHON_VERSION_MAJOR := "3"
PYTHON_VERSION_MINOR := "14"
PYTHON_VERSION_MICRO := "0"
PYTHON_VERSION_MICRO := "1"

WASI_SDK_VERSION_MAJOR := "24"
WASI_SDK_VERSION_MINOR := "0"

SHA256_PYTHON_SDK := "54aa3e33ebb45e03b5c13b86ce8742b45bb94e394925622fa66c4700f6782979"
SHA256_PYTHON_SDK_BUILD := "98e7cd352e512d1d2af6f999f4391df959eba1b213ef778646353620d697638a"
SHA256_PYTHON_SDK := "9c566091ae743a86cdd5139a814886bc1e7118d3c171652975a3f532a12407c9"
SHA256_PYTHON_SDK_BUILD := "69cef5c440d3ff105ee8767fcef4b5864f47d178d71582132778699805b11e6b"
SHA256_WASI_SDK_SYSROOT := "35172f7d2799485b15a46b1d87f50a585d915ec662080f005d99153a50888f08"

PYTHON_VERSION_FULL := PYTHON_VERSION_MAJOR + "." + PYTHON_VERSION_MINOR + "." + PYTHON_VERSION_MICRO

# Configurable URLs for Python SDK downloads (with defaults)
PYTHON_SDK_BASE_URL := env_var_or_default("PYTHON_SDK_BASE_URL", "https://github.com/brettcannon/cpython-wasi-build/releases/download")
PYTHON_SDK_BASE_URL := env_var_or_default("PYTHON_SDK_BASE_URL", "https://github.com/influxdata/cpython-wasi-build/releases/download")
PYTHON_SDK_URL := env_var_or_default("PYTHON_SDK_URL", PYTHON_SDK_BASE_URL + "/v" + PYTHON_VERSION_FULL + "/python-" + PYTHON_VERSION_FULL + "-wasi_sdk-" + WASI_SDK_VERSION_MAJOR + ".zip")
BUILD_PYTHON_SDK_URL := env_var_or_default("BUILD_PYTHON_SDK_URL", PYTHON_SDK_BASE_URL + "/v" + PYTHON_VERSION_FULL + "/_build-python-" + PYTHON_VERSION_FULL + "-wasi_sdk-" + WASI_SDK_VERSION_MAJOR + ".zip")

Expand Down
6 changes: 3 additions & 3 deletions guests/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ just build-release
```

## Python Version
We currently bundle [Python 3.14.0], [build for WASI](https://docs.python.org/3/library/intro.html#webassembly-platforms).
We currently bundle [Python 3.14.1], [build for WASI](https://docs.python.org/3/library/intro.html#webassembly-platforms).

## Custom CPython Configuration
You can configure the build to use a custom CPython source by setting the following environment variables:
Expand All @@ -31,7 +31,7 @@ You can configure the build to use a custom CPython source by setting the follow
`libpython3.14.a`, `libmpdec.a`, etc.) needed for static linking. Will override
`PYTHON_SDK_BASE_URL` if set.

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).
If these environment variables are not set, the build will use the default URLs pointing to Influx's [CPython WASI build releases](https://github.com/influxdata/cpython-wasi-build/releases).

Example usage:
```console
Expand Down Expand Up @@ -267,7 +267,7 @@ There is NO other I/O available that escapes the sandbox.
[`Duration`]: https://docs.rs/arrow/latest/arrow/datatypes/enum.DataType.html#variant.Duration
[`Microsecond`]: https://docs.rs/arrow/latest/arrow/datatypes/enum.TimeUnit.html#variant.Microsecond
[`os.environ`]: https://docs.python.org/3/library/os.html#os.environ
[Python 3.14.0]: https://www.python.org/downloads/release/python-3140
[Python 3.14.1]: https://www.python.org/downloads/release/python-3141
[Python Standard Library]: https://docs.python.org/3/library/index.html
[`requests`]: https://pypi.org/project/requests/
[Scalar UDF]: https://docs.rs/datafusion/latest/datafusion/logical_expr/struct.ScalarUDF.html
Expand Down
Loading