Skip to content

Commit 1f53588

Browse files
committed
Use the deprecated delocate.tools.get_rpaths
This is needed because the last delocate package that supports python 3.8 does not have _get_rpaths Signed-off-by: Cristian Le <git@lecris.dev>
1 parent 476771f commit 1f53588

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/scikit_build_core/repair_wheel/darwin.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import dataclasses
88
from typing import TYPE_CHECKING
99

10-
from .._logging import logger
1110
from .rpath import RpathWheelRepairer
1211

1312
if TYPE_CHECKING:
@@ -32,12 +31,10 @@ class MacOSWheelRepairer(RpathWheelRepairer):
3231
_origin_symbol = "@loader_path"
3332

3433
def get_library_rpath(self, artifact: Path) -> list[str]:
35-
from delocate.tools import _get_rpaths
34+
from delocate.tools import get_rpaths
3635

37-
arch_rpaths = _get_rpaths(artifact)
38-
if len(arch_rpaths) > 1:
39-
logger.warning("Multiple architecture rpath parsing not implemented")
40-
return [path for arch in arch_rpaths for path in arch_rpaths[arch]]
36+
# Using the deprecated method here in order to support python 3.8
37+
return list(get_rpaths(str(artifact)))
4138

4239
def patch_library_rpath(self, artifact: Path, rpaths: list[str]) -> None:
4340
from delocate.tools import _delete_rpaths, add_rpath

0 commit comments

Comments
 (0)