mirror of
https://github.com/astral-sh/uv
synced 2026-01-09 23:53:26 -05: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:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user