mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Include uppercase platforms for Windows wheels (#11681)
## Summary It turns out these are uppercased for Windows. Closes https://github.com/astral-sh/uv/issues/11664.
This commit is contained in:
parent
36268fbe12
commit
f4339b5d7e
2 changed files with 79 additions and 3 deletions
|
@ -84,13 +84,13 @@ static MAC_MARKERS: LazyLock<UniversalMarker> = LazyLock::new(|| {
|
|||
});
|
||||
static ARM_MARKERS: LazyLock<UniversalMarker> = LazyLock::new(|| {
|
||||
let pep508 =
|
||||
MarkerTree::from_str("platform_machine == 'aarch64' or platform_machine == 'arm64'")
|
||||
MarkerTree::from_str("platform_machine == 'aarch64' or platform_machine == 'arm64' or platform_machine == 'ARM64'")
|
||||
.unwrap();
|
||||
UniversalMarker::new(pep508, ConflictMarker::TRUE)
|
||||
});
|
||||
static X86_64_MARKERS: LazyLock<UniversalMarker> = LazyLock::new(|| {
|
||||
let pep508 =
|
||||
MarkerTree::from_str("platform_machine == 'x86_64' or platform_machine == 'amd64'")
|
||||
MarkerTree::from_str("platform_machine == 'x86_64' or platform_machine == 'amd64' or platform_machine == 'AMD64'")
|
||||
.unwrap();
|
||||
UniversalMarker::new(pep508, ConflictMarker::TRUE)
|
||||
});
|
||||
|
@ -326,7 +326,6 @@ impl Lock {
|
|||
}
|
||||
|
||||
if platform_tags.iter().all(PlatformTag::is_windows) {
|
||||
// TODO(charlie): This omits `win_ia64`, which is accepted by Warehouse.
|
||||
if graph.graph[node_index]
|
||||
.marker()
|
||||
.is_disjoint(*WINDOWS_MARKERS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue