astral-sh / uv

An extremely fast Python package installer and resolver, written in Rust.
https://astral.sh/
Apache License 2.0
15.15k stars 436 forks source link

`uv run --with=X` shouldn't install `X` if it's already available #4547

Closed charliermarsh closed 1 week ago

charliermarsh commented 2 weeks ago

If it's already part of the project (and thus the environment), we shouldn't need to install it. Same goes for any of the dependencies of X.

charliermarsh commented 2 weeks ago

This requires that we have some concept of "packages that are available, but not in our current environment". It causes some problems for the install plan. In some ways it's conceptually similar to respecting multiple sys.path entries.

charliermarsh commented 2 weeks ago

I can be responsible for this though unclear on its priority.