Skip to content

Commit 9d746eb

Browse files
committed
cli: Fail when patchelf does not exist
1 parent 1984ca4 commit 9d746eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/cloe_launch/exec.py

+3
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,9 @@ def copy_tree(src, dest, ignore):
846846
# fine without any extra steps, like setting LD_LIBRARY_PATH.
847847
if patch_rpath:
848848
assert platform.system() != "Windows"
849+
if shutil.which("patchelf") is None:
850+
logging.error("Error: required executable is not available: patchelf")
851+
sys.exit(2)
849852
cloe_utils.patch_binary_files_rpath(dest / "bin", ["$ORIGIN/../lib"])
850853
cloe_utils.patch_binary_files_rpath(dest / "lib" / "cloe", ["$ORIGIN/.."])
851854

0 commit comments

Comments
 (0)