-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
tools/espressif: Improve version checking by subprocess #15854
base: master
Are you sure you want to change the base?
Conversation
1ed2895
to
db2df36
Compare
[Experimental Bot, please feedback here] This PR appears to meet the NuttX requirements, although some clarifications and additions would improve it. Strengths:
Weaknesses:
Recommendations for Improvement:
Example of an improved Impact section:
By addressing these points, the PR will be more comprehensive, easier to review, and contribute to higher quality code. |
@eren-terzioglu and @fdcavalcanti , can you please take a look? |
Does it solve an issue? Are you having problems with pipx? |
Please provide test with |
Yes, each app installed by pipx like tools is in a isolated venv, pkg_resources can't fetch the info if not switch to it. |
Summary: - Replace version checking logic using pkg_resources and importlib with a subprocess call to `esptool.py version` - This change enhances compatibility with esptool installed via pipx and simplifies the version retrieval process Impact: - No functional changes; the script continues to prompt for installation if esptool is not found - Increases maintainability by reducing dependency on Python version checks Signed-off-by: Huang Qi <[email protected]>
Summary
esptool.py version
Impact
Testing
GitHub CI and local build:
Test with esptool 4.7: