emscripten-core / emsdk

Emscripten SDK
http://emscripten.org
Other
2.98k stars 679 forks source link

When running under bazel, Emsdk should use the bazel python through something like py_binary instead of the system python #1263

Open logankaser opened 1 year ago

logankaser commented 1 year ago

It seems like the bazel wrapper escapes the bazel sandbox and relies on having the correct version of python installed on the system. Is there a way to force it to use the bazel python tool chain?

allsey87 commented 2 months ago

It seems like the bazel wrapper escapes the bazel sandbox

Could you go into a bit more detail here? What sort of issues has this caused you? Referring to #1422, I am just using the native implementation of py_binary (not the one from rules_python) which I suspect still uses the system installed Python.

If I get time to work on #1422, I intend to switch it over to python_rules since that might work around https://github.com/bazelbuild/bazel/issues/17629.