Skip to content
Snippets Groups Projects
Commit fecf1649 authored by calrama's avatar calrama
Browse files

[centos] fix python patching

parent 77e70fef
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,9 @@ def make_python_portable(interpreter):
root_dir = bin_dir.parent
lib_dir = root_dir / "lib"
# Patch interpreter to find all libraries
check_call(["patchelf", "--set-rpath", "$ORIGIN/../lib", interpreter])
# Install all dependencies
targets = [
interpreter,
......@@ -48,7 +51,6 @@ def make_python_portable(interpreter):
shutil.copy2(str(path), str(lib_dir / name))
# Patch targets and dependencies to find each other
check_call(["patchelf", "--set-rpath", "$ORIGIN/../lib", interpreter])
for target in targets[1:]:
num_parents = len(target.relative_to(lib_dir).parts) - 1
rpath = Path("$ORIGIN")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment