make it possible to run linux tests on arm64 macs
This commit is contained in:
+12
-1
@@ -192,7 +192,7 @@ def expected_wheels(
|
||||
platform_tags = []
|
||||
|
||||
if platform == "linux":
|
||||
architectures = [machine_arch]
|
||||
architectures = [arch_name_for_linux(machine_arch)]
|
||||
|
||||
if machine_arch == "x86_64":
|
||||
architectures.append("i686")
|
||||
@@ -255,3 +255,14 @@ def get_macos_version():
|
||||
"""
|
||||
version_str, _, _ = pm.mac_ver()
|
||||
return tuple(map(int, version_str.split(".")[:2]))
|
||||
|
||||
|
||||
def arch_name_for_linux(arch: str):
|
||||
"""
|
||||
Archs have different names on different platforms, but it's useful to be
|
||||
able to run linux tests on dev machines. This function translates between
|
||||
the different names.
|
||||
"""
|
||||
if arch == "arm64":
|
||||
return "aarch64"
|
||||
return arch
|
||||
|
||||
Reference in New Issue
Block a user