Revert "build_pyodide: try more recent pyodide-build"

This reverts commit f7876a97ee.

There's some emscripten mismatch, will try to bump it later.
This commit is contained in:
Andrej730
2026-08-07 20:04:46 +05:00
parent f7876a97ee
commit 1a931ddfd9
2 changed files with 5 additions and 6 deletions
+5 -5
View File
@@ -2,7 +2,9 @@
set -ex set -ex
PYODIDE_VERSION=0.29.3 PYODIDE_VERSION=0.29.3
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) PYODIDE_BUILD_VERSION=0.33.0
PYODIDE_XBUILDENV_ROOT="${HOME}/.cache/.pyodide-xbuildenv-${PYODIDE_BUILD_VERSION}"
PYODIDE_XBUILDENV="${PYODIDE_XBUILDENV_ROOT}/${PYODIDE_VERSION}"
# Script is assuming that it will be possible to execute it multiple times # Script is assuming that it will be possible to execute it multiple times
# therefore we're clearing venv each time and ignoring existing 'emsdk' folder. # therefore we're clearing venv each time and ignoring existing 'emsdk' folder.
@@ -14,14 +16,12 @@ source .venv/bin/activate
# Install pyodide cross build environment. # Install pyodide cross build environment.
# Instructions: https://pyodide.org/en/stable/development/building-packages.html # Instructions: https://pyodide.org/en/stable/development/building-packages.html
uv pip install -r "${SCRIPT_DIR}/requirements.txt" uv pip install "pyodide-build==${PYODIDE_BUILD_VERSION}"
# `uv run` is required, so xbuildenv would skip using `pip`. # `uv run` is required, so xbuildenv would skip using `pip`.
uv run pyodide xbuildenv install "${PYODIDE_VERSION}" uv run pyodide xbuildenv install "${PYODIDE_VERSION}"
uv run pyodide xbuildenv install-emscripten uv run pyodide xbuildenv install-emscripten
# Cache path includes a hash segment that varies by pyodide-build version, EMSDK_ROOT="${PYODIDE_XBUILDENV}/emsdk"
# so query it instead of constructing it manually.
EMSDK_ROOT=$(uv run pyodide config get emsdk_dir)
[ -f "${EMSDK_ROOT}/emsdk_env.sh" ] && source "${EMSDK_ROOT}/emsdk_env.sh" [ -f "${EMSDK_ROOT}/emsdk_env.sh" ] && source "${EMSDK_ROOT}/emsdk_env.sh"
[ -f "${EMSDK_ROOT}/../../emsdk_env.sh" ] && source "${EMSDK_ROOT}/../../emsdk_env.sh" [ -f "${EMSDK_ROOT}/../../emsdk_env.sh" ] && source "${EMSDK_ROOT}/../../emsdk_env.sh"
which emcc which emcc
-1
View File
@@ -1 +0,0 @@
pyodide-build==0.39.0