mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-24 05:17:05 +00:00
## Summary
This fixes an extremely subtle bug in `pip install --reinstall`, whereby
if you depend on `setuptools` at the top level, we end up uninstalling
it after resolving, which breaks some cached state. If we have
`--reinstall`, we need to reset that cached state between resolving and
installing.
## Test Plan
Running `pip install --reinstall` with:
```txt
setuptools
devpi @
|
||
|---|---|---|
| .. | ||
| common | ||
| add.rs | ||
| pip_compile.rs | ||
| pip_install.rs | ||
| pip_install_scenarios.rs | ||
| pip_sync.rs | ||
| pip_uninstall.rs | ||
| remove.rs | ||
| venv.rs | ||