File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 6363 install_root=$(find ./IfcOpenShell/build -maxdepth 4 -name install)
6464 find "$install_root" -type f -name 'cache-*.tar.gz' -maxdepth 1 -exec tar -xzf {} -C "$install_root" \;
6565
66+ - name : Relocate python libraries
67+ run : |
68+ base=$(find $PWD/IfcOpenShell/build -maxdepth 4 -name install)
69+ for pybin in $(find $base -name python3); do
70+ l="$(ls $(dirname $pybin)/../lib/libpython*.dylib 2>/dev/null | head -n 1)"
71+ o="$(otool -L "$pybin" | awk '/libpython/ {print $1; exit}')"
72+ n="@executable_path/../lib/$(basename "$l")"
73+ install_name_tool -change "$o" "$n" "$pybin"
74+ otool -L "$pybin"
75+ done
76+
6677 - name : Debug
6778 run : |
6879 base=$(find $PWD/IfcOpenShell/build -maxdepth 4 -name install)
You can’t perform that action at this time.
0 commit comments