Skip to content

Commit 9568b59

Browse files
committed
feature: allow running integration tests on macos arm64
1 parent ecd316f commit 9568b59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/auditwheel/policy/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121

2222
def get_arch_name() -> str:
2323
machine = _platform_module.machine()
24+
if sys.platform == "darwin" and machine == "arm64":
25+
return "aarch64"
2426
if machine not in {"x86_64", "i686"}:
2527
return machine
26-
else:
27-
return {64: "x86_64", 32: "i686"}[bits]
28+
return {64: "x86_64", 32: "i686"}[bits]
2829

2930

3031
_ARCH_NAME = get_arch_name()

0 commit comments

Comments
 (0)