makefile/tools/esptool: cleanup including version update to 5.0.0#21619
makefile/tools/esptool: cleanup including version update to 5.0.0#21619crasbe merged 7 commits intoRIOT-OS:masterfrom
Conversation
The `esptool.py` program is no longer installed as a RIOT package, but as a pure Python package, as published by Espressif. The installation takes place in a virtual Python environment in the `dist/tools/esptools/venv` directory. Therfore, there is no need to pull the GitHub repository and thus not necessary to install it as a RIOT package.
The cleanup includes the following changes: - The `esptool.py` is no longer installed as a RIOT package, but as a pure Python package, as published by Espressif. The installation takes place in a virtual Python environment in the `dist/tools/esptools/venv` directory. - The installation of the `esptool.py` is now version-sensitive. - The `esptool.py` from the Python package is always used. - The option for users to use a custom `esptool.py` has been removed because newer versions of `esptool.py` use renamed options that are not compatible with older versions of `esptool.py`. Using a custom `esptool.py` therefore makes no sense.
Since only the `esptool.py` from the Python package, as published by Espressif, is used, older `esptool.py` versions are removed.
fa9a06a to
eb55347
Compare
b0f0736 to
a36704e
Compare
|
Thanks for reviewing and approving 😄 |
|
This sadly had the side effect that Specifically, the |
Hmm, that's too bad. I think the only option is to use a different virtual environment in riotdocker. But how can I tell if I'm currently in a riotdocker environment or not? |
I think this is fine.
ifeq (1,$(INSIDE_DOCKER))
$(info "Hello from inside docker!")
endif |
Contribution description
This PR is a cleanup for
esptool.py. It includes the following changes:esptool.pyis no longer installed as a RIOT package, but as a pure Python package, as published by Espressif. The installation takes place in a virtual Python environment in thedist/tools/esptools/venvdirectory.pkg/esptoolRIOT package has been removed.esptool.pyis now version-sensitive.esptool.pyfrom the Python package is used now.esptool.pyare therefore removed fromdist/tools/esptool.esptool.pyhas been removed because the command options of the current version ofesptool.pyare not compatible with older versions ofesptool.py. The use of a customesptool.pytherefore no longer makes sense.esptool.pyis udated to the current version 5.0.0.Testing procedure
Compilation in CI should succeed.
Issues/PRs references