Skip to content

Commit

Permalink
Translate arm64 to aarch64 for wheel names
Browse files Browse the repository at this point in the history
  • Loading branch information
mkiefel authored and adisbladis committed Feb 13, 2025
1 parent a73f903 commit 9b43213
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pypa.nix
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,11 @@ lib.fix (self: {
let
m = match "linux_(.+)" platformTag;
arch = elemAt m 0;

linuxArch = if platform.linuxArch == "arm64" then "aarch64" else platform.linuxArch;
in
assert m != null;
platform.isLinux && arch == platform.linuxArch
platform.isLinux && arch == linuxArch
)
else
throw "Unknown platform tag: '${platformTag}'";
Expand Down

0 comments on commit 9b43213

Please sign in to comment.