-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use +- install output for Python versions #5201
Conversation
installation.key().green(), | ||
)?; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ended up feeling unnecessary now that we show the summary at the end.
@@ -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())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is inverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I should've added a explanation here. This is intentional to ensure that Python installations are sorted in descending order by version. #5139
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh! haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hah, I'll take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gorgeous.
Thank you! |
## Summary See: #5139 and #5201 (comment). ## Test Plan Verified that 3.12 was chosen above 3.8 in: - `cargo run -- python uninstall --all` - `cargo run -- python install 3.8 3.12` - `cargo run -- tool run -v httpx`
Summary
Follow-up to #4939. Uses a format that's closer to
uv pip install
, with some special-casing for single Pythons.Test Plan
A few examples: