uv/scripts
Charlie Marsh e71e3e8dd1
Refresh BuildDispatch when running pip install with --reinstall (#933)
## 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 @ e334eb4dc9/devpi-2.2.0.tar.gz
```

Fails on `main`, but passes.
2024-01-15 18:56:18 +00:00
..
bench Move Puffin subcommands to a pip namespace (#921) 2024-01-15 16:36:45 +00:00
benchmarks Move Puffin subcommands to a pip namespace (#921) 2024-01-15 16:36:45 +00:00
compare_with_pip Update compare_with_pip.py (#828) 2024-01-08 09:46:30 +00:00
editable-installs Refresh BuildDispatch when running pip install with --reinstall (#933) 2024-01-15 18:56:18 +00:00
popular_packages Finish install-many with pypi 10k most dependents (#732) 2023-12-27 09:42:51 -05:00
requirements Move Puffin subcommands to a pip namespace (#921) 2024-01-15 16:36:45 +00:00
scenarios Move Puffin subcommands to a pip namespace (#921) 2024-01-15 16:36:45 +00:00
wheels Implement --find-links as flat indexes (directories in pip-compile) (#912) 2024-01-15 02:04:10 +00:00