Skip to content
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

Fix boards-manager install issues on Linux and Windows #5898

Merged
merged 12 commits into from
Apr 10, 2019

Conversation

earlephilhower
Copy link
Collaborator

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.

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.
@earlephilhower earlephilhower added this to the 2.5.1 milestone Mar 20, 2019
@earlephilhower
Copy link
Collaborator Author

@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.
Fixes a typo in the python path for Windows for upload.
@devyte devyte merged commit 4b596d8 into esp8266:master Apr 10, 2019
@earlephilhower earlephilhower deleted the pythonspot branch April 10, 2019 11:52
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants