Skip to content

Commit 394f064

Browse files
author
pytorchbot
committed
2025-04-22 nightly release (17dc80e)
1 parent 04b3eda commit 394f064

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packaging/wheel/relocate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ def patch_linux():
337337
if osp.exists(osp.join(output_library, binary)):
338338
relocate_elf_library(patchelf, output_dir, output_library, binary)
339339

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

342344

setup.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,14 @@ def find_library(header):
271271
return True, None, None
272272
print(f"{searching_for}. Didn't find in {prefix}")
273273

274+
if sys.platform == "darwin":
275+
HOMEBREW_PATH = Path("/opt/homebrew")
276+
include_dir = HOMEBREW_PATH / "include"
277+
library_dir = HOMEBREW_PATH / "lib"
278+
if (include_dir / header).exists():
279+
print(f"{searching_for}. Found in {include_dir}.")
280+
return True, str(include_dir), str(library_dir)
281+
274282
return False, None, None
275283

276284

0 commit comments

Comments
 (0)