Skip to content

Use uv for package installation if available #1559

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

Open
grischard opened this issue Mar 31, 2025 · 2 comments
Open

Use uv for package installation if available #1559

grischard opened this issue Mar 31, 2025 · 2 comments
Labels

Comments

@grischard
Copy link

The framework currently installs a few packages by calling pip directly:

https://github.com/platformio/platform-espressif32/blob/master/builder/frameworks/espidf.py

The new-ish uv is much faster than pip. This matters especially when compiling on low power devices like a Raspberry Pi.

If uv is installed, pip should be called as uv pip instead.

@valeros valeros added the feature label Apr 1, 2025
@Jason2866
Copy link
Contributor

Pip installs needed packages one time only. Same as for tools and toolchains. There is no speed increase when compile is done the 2nd time.

@grischard
Copy link
Author

Yes, but in a build system like esphome, it happens every time a compile environment gets created, for every single device. This environment gets re-created every new version. The savings over time would therefore be significant.

(Yes, some caching there would improve thing seriously; both of these things are true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants