Skip to content

Commit

Permalink
fix expected graalpy wheel names for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Jun 30, 2023
1 parent 55c78fd commit 42efc40
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/utils.py
Expand Up @@ -182,12 +182,14 @@ def expected_wheels(
]

# GraalPy encodes compilation platform and arch in the tag
if machine_arch == "x86_64" and platform == "linux":
python_abi_tags += ["graalpy230_310_native_x86_64_linux"]
elif machine_arch == "aarch64" and platform == "linux":
if machine_arch in ["x86_64", "AMD64"]:
if platform == "linux":
python_abi_tags += ["graalpy230_310_native_x86_64_linux"]
elif platform == "macos":
python_abi_tags += ["graalpy230_310_native_x86_64_darwin"]

if machine_arch == "aarch64" and platform == "linux":
python_abi_tags += ["graalpy230_310_native_aarch64_linux"]
elif machine_arch == "AMD64" and platform == "macos":
python_abi_tags += ["graalpy230_310_native_x86_64_darwin"]

if platform == "macos" and machine_arch == "arm64":
# arm64 macs are only supported by cp38+
Expand All @@ -211,7 +213,7 @@ def expected_wheels(
if platform == "linux":
architectures = [arch_name_for_linux(machine_arch)]

if machine_arch == "x86_64":
if machine_arch == "x86_64" and not python_abi_tag.startswith("graalpy"):
architectures.append("i686")

platform_tags = [
Expand All @@ -221,7 +223,7 @@ def expected_wheels(
)
for architecture in architectures
]
if len(musllinux_versions) > 0 and not python_abi_tag.startswith("pp"):
if len(musllinux_versions) > 0 and not python_abi_tag.startswith(("pp", "graalpy")):
platform_tags.extend(
[
".".join(
Expand Down

0 comments on commit 42efc40

Please sign in to comment.