uv/crates/uv-python
Jo 56f93d9cfc
uv python install: remove the existing version only after the new installation is downloaded successfully (#8485)
## Summary

This PR delays the removal of an existing version after downloading the
new version when running `uv python install --reinstall`.

If the download fails, we can keep the existing version working.

## Test Plan

```console
$ cargo run -- python install 3.13
$ cargo run -- python install --reinstall 3.13 # when downloading, `ctrl-c` to interrupt
$ cargo run -- python list
```
2024-10-23 14:43:09 -04:00
..
python Block Python <3.7 not only on linux (#7266) 2024-09-10 15:15:41 -05:00
src uv python install: remove the existing version only after the new installation is downloaded successfully (#8485) 2024-10-23 14:43:09 -04:00
Cargo.toml chore: unify all env vars used (#8151) 2024-10-14 16:48:13 -05:00
download-metadata.json Fix managed distributions of free-threaded Python on Windows (#8268) 2024-10-16 14:35:29 -05:00
fetch-download-metadata.py Retain old python-build-standalone releases (#8216) 2024-10-15 11:08:46 -05:00
template-download-metadata.py Add support for managed installs of free-threaded Python (#8100) 2024-10-14 15:18:52 -05:00