Skip to content

Commit

Permalink
Additionally copy dylibs to LD_LIBRARY_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Feb 24, 2024
1 parent 4418046 commit f93d483
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/fix_casadi_rpath_mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,22 @@
subprocess.check_call(["install_name_tool", *install_name_tool_args])

subprocess.check_call(["otool", "-L", os.path.join(casadi_dir, libcpp_name)])

# Copy libcasadi.3.7.dylib and libc++.1.0.dylib to LD_LIBRARY_PATH
# This is needed for the casadi python bindings to work while repairing the wheel

subprocess.check_call(
[
"cp",
os.path.join(casadi_dir, libcasadi_37_name),
os.path.join(os.getenv("HOME"), ".local/lib"),
]
)

subprocess.check_call(
[
"cp",
os.path.join(casadi_dir, libcpp_name),
os.path.join(os.getenv("HOME"), ".local/lib"),
]
)

0 comments on commit f93d483

Please sign in to comment.