Skip to content

Commit d4ca5a8

Browse files
committed
[Manylinux_2_28] Modify relocate script for linux builds: fix wheel_name
1 parent f799a53 commit d4ca5a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packaging/wheel/relocate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ def compress_wheel(output_dir, wheel, wheel_dir, wheel_name):
297297
f.write(f"{rel_file},{digest},{size}\n")
298298

299299
print("Compressing wheel")
300+
300301
base_wheel_name = osp.join(wheel_dir, wheel_name)
301302
shutil.make_archive(base_wheel_name, "zip", output_dir)
302303
os.remove(wheel)
@@ -337,6 +338,8 @@ def patch_linux():
337338
if osp.exists(osp.join(output_library, binary)):
338339
relocate_elf_library(patchelf, output_dir, output_library, binary)
339340

341+
# make sure wheel name is compatible with manylinux_2_28
342+
wheel_name = wheel_name.replace("linux_", "manylinux_2_28_")
340343
compress_wheel(output_dir, wheel, wheel_dir, wheel_name)
341344

342345

0 commit comments

Comments
 (0)