diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c7007799d2..ee0357ea12 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1164,9 +1164,12 @@ jobs: # NOTA BENE: When removing this step, also remove the vendored pyodide file - name: Provision workaround for bug in Pyodide 0.24.1 run: | - PYTHON_HOME=$(python -c 'import sys; print(sys.prefix)') - mkdir -p $PYTHON_HOME/site-packages/pyodide_build/tools/cmake/Modules/Platform - cp vendor/pyodide/Emscripten.cmake $PYTHON_HOME/site-packages/pyodide_build/tools/cmake/Modules/Platform/ + PYTHON_HOME="$(python -c 'import sys; print(sys.prefix)')" + TOOLCHAIN_DIR="$PYTHON_HOME/lib/python3.11/site-packages/pyodide_build/tools/cmake/Modules/Platform" + echo "$PYTHON_HOME" + echo "$TOOLCHAIN_DIR" + mkdir -p "$TOOLCHAIN_DIR" + cp vendor/pyodide/Emscripten.cmake "$TOOLCHAIN_DIR" - name: Build # Without --exports=pyinit, pyodide-build tries to export all symbols from every .o,