Skip to content

Commit 3058a57

Browse files
committed
Update setup.py after ubuntu deprecation
actions/runner-images#11101 officially deprecated ubuntu builds for triton so they are no longer building them for llvm, but setup.py is still looking for them. Fall back to almalinux in these cases.
1 parent 8716ff0 commit 3058a57

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

python/setup.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,19 +195,12 @@ def get_llvm_package_info():
195195
if system == "Darwin":
196196
system_suffix = f"macos-{arch}"
197197
elif system == "Linux":
198-
if arch == 'arm64' and is_linux_os('almalinux'):
198+
if arch == 'arm64':
199199
system_suffix = 'almalinux-arm64'
200-
elif arch == 'arm64':
201-
system_suffix = 'ubuntu-arm64'
202200
elif arch == 'x64':
203201
vglibc = tuple(map(int, platform.libc_ver()[1].split('.')))
204202
vglibc = vglibc[0] * 100 + vglibc[1]
205-
if vglibc > 228:
206-
# Ubuntu 24 LTS (v2.39)
207-
# Ubuntu 22 LTS (v2.35)
208-
# Ubuntu 20 LTS (v2.31)
209-
system_suffix = "ubuntu-x64"
210-
elif vglibc > 217:
203+
if vglibc > 217:
211204
# Manylinux_2.28 (v2.28)
212205
# AlmaLinux 8 (v2.28)
213206
system_suffix = "almalinux-x64"

0 commit comments

Comments
 (0)