Revert "Treat invalid platform as more compatible than invalid Python (#7556)" (#7608)

Closes https://github.com/astral-sh/uv/issues/7606

We'll need to dig deeper into the cause here.
This commit is contained in:
Zanie Blue 2024-09-21 07:34:12 -05:00 committed by GitHub
parent e47e8fe965
commit aca36fe3b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 43 deletions

View file

@ -569,7 +569,7 @@ impl IncompatibleWheel {
},
Self::Tag(tag_self) => match other {
Self::ExcludeNewer(_) => false,
Self::Tag(tag_other) => tag_self > tag_other,
Self::Tag(tag_other) => tag_other > tag_self,
Self::NoBinary | Self::RequiresPython(_, _) | Self::Yanked(_) => true,
},
Self::RequiresPython(_, _) => match other {