diff --git a/recipes/recipes/emscripten_emscripten-wasm32/activate.sh b/recipes/recipes/emscripten_emscripten-wasm32/activate.sh index ad0a7ed9f..4cfdea935 100644 --- a/recipes/recipes/emscripten_emscripten-wasm32/activate.sh +++ b/recipes/recipes/emscripten_emscripten-wasm32/activate.sh @@ -2,8 +2,13 @@ if [ -z ${CONDA_FORGE_EMSCRIPTEN_ACTIVATED+x} ]; then export CONDA_FORGE_EMSCRIPTEN_ACTIVATED=1 - export EMSDK_PYTHON=${BUILD_PREFIX}/bin/python3 - export PYTHON=${BUILD_PREFIX}/bin/python3 + if [ -z ${BUILD_PREFIX+x} ]; then + export EMSDK_PYTHON=${CONDA_PREFIX}/bin/python3 + export PYTHON=${CONDA_PREFIX}/bin/python3 + else + export EMSDK_PYTHON=${BUILD_PREFIX}/bin/python3 + export PYTHON=${BUILD_PREFIX}/bin/python3 + fi CONDA_EMSDK_DIR=$CONDA_PREFIX/opt/emsdk @@ -59,4 +64,4 @@ if [ -z ${CONDA_FORGE_EMSCRIPTEN_ACTIVATED+x} ]; then # wasm bigint export LDFLAGS="$LDFLAGS -sWASM_BIGINT" -fi +fi \ No newline at end of file