mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-24 13:20:53 +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 @
|
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||