Use reinstall report formatting for uv python install --reinstall (#8487)

## Summary

Resolves #8456

## Test Plan

```console
$ cargo run -- python install 3.13
$ cargo run -- python install --reinstall 3.13
Searching for Python versions matching: Python 3.13
Found existing installation for Python 3.13: cpython-3.13.0-macos-aarch64-none
Installed Python 3.13.0 in 7.39s
 ~ cpython-3.13.0-macos-aarch64-none
```

---------

Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
This commit is contained in:
Jo 2024-10-24 02:53:33 +08:00 committed by GitHub
parent e9c08b1639
commit 9540d6ad24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 30 additions and 15 deletions

View file

@ -133,7 +133,7 @@ pub enum EnvironmentPreference {
Any,
}
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum PythonVariant {
#[default]
Default,