-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix boards-manager install issues on Linux and Windows #5898
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
Fixes esp8266#5881 The path to python.exe on Windows needs to change depending on whether it is installed via the boards manager or GIT (similar to the compiler paths). Adjust accordingly.
An empty "python" directory will be created by the boards-manager installer. Required because all archs need all tools defined.
@devyte , @d-a-v this change introduces a "tools/python/python" symlink to "/usr/bin/python" on UNIX-like OSes. The alternative is to make that symlink a simple wrapper (either a bash file "python $*" or even a python file that calls itself with the passed-in args. This is required because we need a "python" tool in the package.JSON file. Its existence causes the Arduino boards.txt to override the {runtime.tools.python.path} var, and that can't be overridden by a boards.txt value (as it is done in GIT builds). So you need something called "python" in that python tool.tar.gz file, and that's what the IDE is going to call. The IDE basically forces it when installed via boards-manager. |
Fixes a typo in the python path for Windows for upload.
37c7e81
to
d851ba6
Compare
Fixes a typo in the python path for Windows for upload.
d851ba6
to
650c8c7
Compare
Fixes #5881
The path to python.exe on Windows needs to change depending on whether
it is installed via the boards manager or GIT (similar to the compiler
paths). Adjust accordingly.
An empty "python" directory will be created by the boards-manager
installer in Linux to avoid "tool not available" errors, and it will contain a symlink
to the real system Python executable.
Tested under Linux GIT, Linux board-manager, Windows git, and
Windows board-manager.