-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
pip install is used here:
buildpacks-python/src/layers/pip_dependencies.rs
Lines 81 to 89 in 0bcbf98
| Command::new("pip") | |
| .args([ | |
| "install", | |
| "--no-input", | |
| "--progress-bar", | |
| "off", | |
| "--requirement", | |
| "requirements.txt", | |
| ]) |
It would be great to also / alternatively use uv pip install. This is intended to be a drop-in replacement for pip, but with much faster dependency resolution and other optimizations. Ref: https://docs.astral.sh/uv/pip/
In practice, I notice a decent speed up when using uv pip install over pip install, and it would be a great improvement to have this speedup in Heroku's Python buildpack.
I think it probably makes sense as an opt-in feature with an environment variable or similar, since there's no way to distinguish when to use uv pip or pip based on the file structure alone.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request