Skip to content

Commit 73611f3

Browse files
committed
chore: use influx cpython fork
fix: fix URL
1 parent 8c0ac44 commit 73611f3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

guests/python/DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Links:
1616
- <https://github.com/python/cpython/tree/main/Tools/wasm>
1717
- <https://devguide.python.org/getting-started/setup-building/#wasi>
1818
- <https://github.com/psf/webassembly>
19-
- <https://github.com/brettcannon/cpython-wasi-build/releases>
19+
- <https://github.com/influxdata/cpython-wasi-build/releases>
2020

2121
Pros:
2222
- Official project, so it has a somewhat stable future and it is easier to get buy-in from the community

guests/python/Justfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
PYTHON_VERSION_MAJOR := "3"
22
PYTHON_VERSION_MINOR := "14"
3-
PYTHON_VERSION_MICRO := "0"
3+
PYTHON_VERSION_MICRO := "1"
44

55
WASI_SDK_VERSION_MAJOR := "24"
66
WASI_SDK_VERSION_MINOR := "0"
77

8-
SHA256_PYTHON_SDK := "54aa3e33ebb45e03b5c13b86ce8742b45bb94e394925622fa66c4700f6782979"
9-
SHA256_PYTHON_SDK_BUILD := "98e7cd352e512d1d2af6f999f4391df959eba1b213ef778646353620d697638a"
8+
SHA256_PYTHON_SDK := "9c566091ae743a86cdd5139a814886bc1e7118d3c171652975a3f532a12407c9"
9+
SHA256_PYTHON_SDK_BUILD := "69cef5c440d3ff105ee8767fcef4b5864f47d178d71582132778699805b11e6b"
1010
SHA256_WASI_SDK_SYSROOT := "35172f7d2799485b15a46b1d87f50a585d915ec662080f005d99153a50888f08"
1111

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

1414
# Configurable URLs for Python SDK downloads (with defaults)
15-
PYTHON_SDK_BASE_URL := env_var_or_default("PYTHON_SDK_BASE_URL", "https://github.com/brettcannon/cpython-wasi-build/releases/download")
15+
PYTHON_SDK_BASE_URL := env_var_or_default("PYTHON_SDK_BASE_URL", "https://github.com/influxdata/cpython-wasi-build/releases/download")
1616
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")
1717
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")
1818

guests/python/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ just build-release
1414
```
1515

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

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

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).
34+
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).
3535

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

0 commit comments

Comments
 (0)