File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/bash
22set -ex
33
4+ # Script is assuming that it will be possible to execute it multiple times
5+ # therefore we're clearing venv each time and ignoring existing 'emsdk' folder.
6+
47# Install uv.
58curl -LsSf https://astral.sh/uv/install.sh | sh
6- uv venv --python 3.13
9+ uv venv --python 3.13 --clear
710source .venv/bin/activate
811
912# Install pyodide cross build environment.
@@ -13,7 +16,9 @@ uv pip install pyodide-build
1316uv run pyodide xbuildenv install
1417
1518# Emscripten doesn't come with xbuildenv.
16- git clone https://github.com/emscripten-core/emsdk
19+ if [ ! -d emsdk ]; then
20+ git clone https://github.com/emscripten-core/emsdk
21+ fi
1722pushd emsdk
1823PYODIDE_EMSCRIPTEN_VERSION=$( pyodide config get emscripten_version)
1924./emsdk install ${PYODIDE_EMSCRIPTEN_VERSION}
You can’t perform that action at this time.
0 commit comments