mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Use +- install output for Python versions (#5201)
## Summary Follow-up to https://github.com/astral-sh/uv/pull/4939. Uses a format that's closer to `uv pip install`, with some special-casing for single Pythons. ## Test Plan A few examples:    
This commit is contained in:
parent
360079fd05
commit
d54ae4e381
4 changed files with 123 additions and 64 deletions
|
@ -350,7 +350,7 @@ impl Ord for PythonInstallationKey {
|
|||
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
||||
self.implementation
|
||||
.cmp(&other.implementation)
|
||||
.then_with(|| other.version().cmp(&self.version()))
|
||||
.then_with(|| self.version().cmp(&other.version()))
|
||||
.then_with(|| self.os.to_string().cmp(&other.os.to_string()))
|
||||
.then_with(|| self.arch.to_string().cmp(&other.arch.to_string()))
|
||||
.then_with(|| self.libc.to_string().cmp(&other.libc.to_string()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue