Skip to content

Commit

Permalink
try with empty emsdk_env.sh (#1131)
Browse files Browse the repository at this point in the history
* try with empty emsdk_env.sh

* undo bld number bump as we do not upload this bld
  • Loading branch information
DerThorsten committed Jun 20, 2024
1 parent 3bbbf39 commit d49847b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion recipes/recipes_emscripten/python/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ echo "" > $RECIPE_DIR/pyodide_env.sh
# But emscripten itself (emcc/emar/...) relies on the env variable PYTHON to be set to python3.11
ln -s $BUILD_PREFIX/bin/python3.11 $BUILD_PREFIX/bin/python.js

# create an empty emsdk_env.sh in CONDA_EMSDK_DIR
echo "" > $EMSCRIPTEN_FORGE_EMSDK_DIR/emsdk_env.sh
# make it executable
chmod +x $EMSCRIPTEN_FORGE_EMSDK_DIR/emsdk_env.sh

# create a symlink from $BUILD_PREFIX/emsdk directory to this dir emsdk.
# This allows us to overwrite the emsdk from pyodide
rm -rf emsdk
mkdir -p emsdk
cd emsdk
ln -s $CONDA_EMSDK_DIR emsdk
ln -s $EMSCRIPTEN_FORGE_EMSDK_DIR emsdk
cd ..


Expand Down

0 comments on commit d49847b

Please sign in to comment.