Skip to content

Commit

Permalink
cli: Fail when patchelf does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
cassava committed May 6, 2024
1 parent 1984ca4 commit 9d746eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/cloe_launch/exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,9 @@ def copy_tree(src, dest, ignore):
# fine without any extra steps, like setting LD_LIBRARY_PATH.
if patch_rpath:
assert platform.system() != "Windows"
if shutil.which("patchelf") is None:
logging.error("Error: required executable is not available: patchelf")
sys.exit(2)
cloe_utils.patch_binary_files_rpath(dest / "bin", ["$ORIGIN/../lib"])
cloe_utils.patch_binary_files_rpath(dest / "lib" / "cloe", ["$ORIGIN/.."])

Expand Down

0 comments on commit 9d746eb

Please sign in to comment.