mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
pin pyodide versions
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
PYODIDE_VERSION=0.29.3
|
||||||
|
PYODIDE_BUILD_VERSION=0.33.0
|
||||||
|
|
||||||
# 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.
|
||||||
|
|
||||||
@@ -11,13 +14,14 @@ 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 pyodide-build
|
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
|
uv run pyodide xbuildenv install "${PYODIDE_VERSION}"
|
||||||
uv run pyodide xbuildenv install-emscripten
|
uv run pyodide xbuildenv install-emscripten
|
||||||
|
|
||||||
EMSDK_ROOT=$(pyodide config get emscripten_dir)
|
EMSDK_ROOT=$(pyodide config get emscripten_dir)
|
||||||
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
|
||||||
|
|
||||||
mkdir -p packages/ifcopenshell
|
mkdir -p packages/ifcopenshell
|
||||||
|
|||||||
Reference in New Issue
Block a user