-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Move all scripts and documentation to Python3 #6378
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
Conversation
Python 2 EOL is Jan 1, 2020. Migrate scripts to run under Python 3. Under Windows, we're already running Python 3.7, by dumb luck. The oddness is that the Windows standalone executable for Python 3 is called "python" whereas under UNIX-like OSes it's called "python3" with "python" always referring to the Python 2 executable. The ZIP needs to be updated to include a Python3.exe (copy of Python.exe) so that we can use the same command lines under Linux and Windows, and to preserve my sanity. Fixes esp8266#6376
The order of the board opts dict changes depending on the Python version and machine, so sort the options before printing them to get a stable ordering.
Most scripts can run as Python 2 or Python 3 with minimal changes, so re-add (and fix, as necessary) compatibility tweaks to the scripts.
2.6.0 has a chance of being the last release before Jan 1, 2020, so adding to 2.6.0 milestone. |
Dear Sirs, Dear @earlephilhower , After having a quick look, it seems that the directory that holds the python executables need to be renamed from "python" to "python3" in order to restore the normal operation. ( Alternative the calling function should try the path with "python" that is the standard directory name as it is now ). Thanks and Best Regards, |
Python 2 EOL is Jan 1, 2020. Migrate scripts to run under Python 3.
Under Windows, we're already running Python 3.7, by dumb luck. The
oddness is that the Windows standalone executable for Python 3 is called
"python" whereas under UNIX-like OSes it's called "python3" with
"python" always referring to the Python 2 executable. The ZIP needs to
be updated to include a Python3.exe (copy of Python.exe) so that we can
use the same command lines under Linux and Windows, and to preserve my
sanity.
Fixes #6376