Skip to content

Commit f952820

Browse files
committed
Run pachelf directly
`auditwheel` pacher forces `DT_RPATH`. Here instead we use `DT_RUNPATH` so that it can be overwritten by the user Signed-off-by: Cristian Le <git@lecris.dev>
1 parent 9cd01a9 commit f952820

File tree

1 file changed

+4
-3
lines changed
  • src/scikit_build_core/repair_wheel

1 file changed

+4
-3
lines changed

src/scikit_build_core/repair_wheel/linux.py

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

99
from auditwheel.elfutils import elf_read_rpaths
10-
from auditwheel.patcher import Patchelf
1110

11+
from .._shutil import Run
1212
from .rpath import RpathWheelRepairer
1313

1414
if TYPE_CHECKING:
@@ -39,5 +39,6 @@ def get_library_rpath(self, artifact: Path) -> list[str]:
3939
def patch_library_rpath(self, artifact: Path, rpaths: list[str]) -> None:
4040
final_rpaths = set(rpaths)
4141
if final_rpaths:
42-
patcher = Patchelf()
43-
patcher.set_rpath(artifact, ":".join(final_rpaths))
42+
run = Run()
43+
run.live("patchelf", "--remove-rpath", artifact)
44+
run.live("patchelf", "--set-rpath", ":".join(final_rpaths), artifact)

0 commit comments

Comments
 (0)