Skip to content

Commit b16f66e

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 246b16f commit b16f66e

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
@@ -6,7 +6,6 @@
66

77
from typing import TYPE_CHECKING
88

9-
from .._logging import logger
109
from .rpath import RpathWheelRepairer
1110

1211
if TYPE_CHECKING:
@@ -30,12 +29,10 @@ class MacOSWheelRepairer(RpathWheelRepairer):
3029
_origin_symbol = "@loader_path"
3130

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

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

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

0 commit comments

Comments
 (0)