-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set EMSDK_PYTHON=../python3
to match what emsdk_env.sh
does
#19
Conversation
We add the path containing the python binaries from the packages to `PATH`, but that contains `python3`, and not `python`. When we run `emcc --version` on a machine without a system python, it fails with `unable to find python in $PATH` This was not caught with our regular testing, possibly because a system `python` was available on those machines. `emsdk_env.sh` sets `EMSDK_PYTHON = /Users/radical/dev/r3/src/mono/wasm/emsdk/python/3.7.4-2_64bit/bin/python3` .. so, this commit adds the same for running `emcc`, and sets that to `python3` from the package. This was tested on macOS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need add python to the normal path and set EMSDK_PYTHON or can we just set EMSDK_PYTHON (or is it helpful to set both for the offsets tool?)
Only setting re:offsets tool, what's that? |
btw, |
Ok, please open a PR for the branch then (we don't have a bot here so you'll need to do it manually). |
We add the path containing the python binaries from the packages to
PATH
, but that containspython3
, and notpython
. When we runemcc --version
on a machine without a system python, it fails withThis was not caught with our regular testing, possibly because a system
python
was available on those machines.emsdk_env.sh
setsEMSDK_PYTHON = /Users/radical/dev/r3/src/mono/wasm/emsdk/python/3.7.4-2_64bit/bin/python3
.. so, this commit adds the same for running
emcc
, and sets that topython3
from the package.This was tested on macOS.