Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ad26df1

Browse files
committedJul 1, 2023
fix expected graalpy wheel names for tests
1 parent 8f425ae commit ad26df1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed
 

‎test/utils.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,14 @@ def expected_wheels(
182182
]
183183

184184
# GraalPy encodes compilation platform and arch in the tag
185-
if machine_arch == "x86_64" and platform == "linux":
186-
python_abi_tags += ["graalpy230_310_native_x86_64_linux"]
187-
elif machine_arch == "aarch64" and platform == "linux":
185+
if machine_arch in ["x86_64", "AMD64"]:
186+
if platform == "linux":
187+
python_abi_tags += ["graalpy230_310_native_x86_64_linux"]
188+
elif platform == "macos":
189+
python_abi_tags += ["graalpy230_310_native_x86_64_darwin"]
190+
191+
if machine_arch == "aarch64" and platform == "linux":
188192
python_abi_tags += ["graalpy230_310_native_aarch64_linux"]
189-
elif machine_arch == "AMD64" and platform == "macos":
190-
python_abi_tags += ["graalpy230_310_native_x86_64_darwin"]
191193

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

214-
if machine_arch == "x86_64":
216+
if machine_arch == "x86_64" and not python_abi_tag.startswith("graalpy"):
215217
architectures.append("i686")
216218

217219
platform_tags = [
@@ -221,7 +223,7 @@ def expected_wheels(
221223
)
222224
for architecture in architectures
223225
]
224-
if len(musllinux_versions) > 0 and not python_abi_tag.startswith("pp"):
226+
if len(musllinux_versions) > 0 and not python_abi_tag.startswith(("pp", "graalpy")):
225227
platform_tags.extend(
226228
[
227229
".".join(

0 commit comments

Comments
 (0)
Please sign in to comment.