Emscripten: Allow running on Python 3?

Created on 19 Dec 2017  路  6Comments  路  Source: emscripten-core/emscripten

Now we have all PRs merged to pass CI with Py3 (except #5946), we now can allow Py3 rather than forcing Py2. What do you think?

We currently have two CIs running, so we may let one to run Py2 and the other to run Py3.

Most helpful comment

https://pythonclock.org is an interesting site.

All 6 comments

Yeah, we should move forward here. How about allowing Py3, but showing a warning when it is used, "this is experimental" or such?

Good idea about making one CI use 2, and the other 3. That can help a lot until we can move entirely to Py3.

Maybe it should even be a flag, emcc --python3? That might be excessive though.

Yeah, we should move forward here. How about allowing Py3, but showing a warning when it is used, "this is experimental" or such?

:+1:

Maybe it should even be a flag, emcc --python3? That might be excessive though.

That way every test should add the flag, which is not preferable in my opinion. We may add a EMCC_OPTIONS environment variable and use EMCC_OPTIONS=--python3 to reduce diffs (like NODE_OPTIONS do)

I think I should work on getting Emsdk to bundle up Python 3 as an optional package as well, so that we can get Windows users optionally over to Python 3 when possible, to get people to test this out. I think once things are solid, we could even look at dropping Python 2 support, since Python community seems to be aggressive about it.

This is assuming that Python 3 has at least equally good Windows support, whereas Python 2 Windows was quite buggy for a long time in piping and multiprocessing support, causing some quite annoying workarounds.

https://pythonclock.org is an interesting site.

Fixed by #5967

Was this page helpful?
0 / 5 - 0 ratings