mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +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 @
|
||
---|---|---|
.. | ||
bench | ||
benchmarks | ||
compare_with_pip | ||
editable-installs | ||
popular_packages | ||
requirements | ||
scenarios | ||
wheels |