astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
23.01k stars 668 forks source link

Enhancement: let uv use pips global packages if present #1397

Open BWindey opened 8 months ago

BWindey commented 8 months ago

This might be out of scope for this package manager, but I noticed that uv won't use the global packages with pip when installing something. For example, I installed my own package (from PyPI) in a virtual environment, both with pip and uv to see the difference. Pip noticed that the package, along with all its dependencies, were already present in the global packages (pip installed outside venv), and thus used those to only need to install them, but not download anymore. Uv did not use them, it downloaded everything from the internet.

This could be a nice improvement, but I understand if this is not something you'd want.

(btw, nice work, this is already a nice tool that's a bit faster then pip on uncached packages!)

zanieb commented 8 months ago

I'm glad to hear you like it!

Interesting idea. I'm not sure how challenging it would be to support reading other site-packages.