Skip to content

Use uv pip or optionally support it #452

@crestonbunch

Description

@crestonbunch

pip install is used here:

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions