espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.73k stars 741 forks source link

Any plans to switch to python3? #2500

Open MaBecker opened 1 month ago

MaBecker commented 1 month ago

Some scripts do still user pythoninstead of $PYTHON. For the make files it is already implemented. Any plans to switch?

gfwilliams commented 1 month ago

I think all the scripts are compatible with python3 now. Which ones did you find that don't reference it directly?

I'd rather not use $PYTHON - it's not set on my system anyway, and IMO that's just a worse way of writing python. We should just use python3

MaBecker commented 1 month ago

this link will give you a list

https://github.com/search?q=repo%3Aespruino%2FEspruino%20%2Fusr%2Fbin%2Fenv%20python&type=code

gfwilliams commented 1 month ago

If you want to change them, check they're ok and do a PR that'd be great? But from my point of view this isn't a high priority as it all works for me as-is

MaBecker commented 1 month ago

look's like you have linked python3 to python or somethin else to make python work ;-)

gfwilliams commented 1 month ago

sudo apt install python-is-python3

I don't believe I have done anything special though - all the GitHub action builds work fine as is