build_pyodide.yaml - move build_pyodide to a separate script

This commit is contained in:
Andrej730
2025-10-20 11:40:45 +05:00
parent cb36e10279
commit aee8cbe479
3 changed files with 14 additions and 11 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/bash
set -e
cd pyodide
make
cd ..
mkdir -p packages/ifcopenshell
cp IfcOpenShell/pyodide/meta.yaml packages/ifcopenshell
# Required, otherwise pyodide will create new temp pyodide environment.
export PYODIDE_ROOT=/src/pyodide
# Ensure emsdk tools are in PATH.
export PATH=$PYODIDE_ROOT/emsdk/emsdk:$PYODIDE_ROOT/emsdk/emsdk/node/22.16.0_64bit/bin:$PYODIDE_ROOT/emsdk/emsdk/upstream/emscripten:$PATH
pyodide build-recipes ifcopenshell --install