Skip to content

Commit

Permalink
Use explicit DYLD_LIBRARY_PATH for delocate
Browse files Browse the repository at this point in the history
  • Loading branch information
Yngve S. Kristiansen committed Nov 6, 2023
1 parent 10bbb9c commit 8a41fbe
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/bundle_with_dakota_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,12 @@ jobs:
echo "libgccpath=$libgccpath"
echo "libdakotapath=$libdakotapath"
DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$libgccpath:libdakotapath"
# This may seem like nonsense but is an intentional
# workaround MacOS (flaky) security features that result
# in delocate suddenly finding the search paths to be empty
# ref issue: https://github.com/pypa/cibuildwheel/issues/816
EXTENDED_DYLD_LIBRARY_PATH="${libgccpath}:${HOME}/${INSTALL_DIR}/lib:$INSTALL_DIR/bin"
install_name_tool -add_rpath "$libgccpath" "$carolina_so_path"
install_name_tool -add_rpath "${HOME}/${INSTALL_DIR}/lib" "$carolina_so_path"
Expand All @@ -190,8 +194,8 @@ jobs:
pv=$(echo ${{ matrix.python-version }} | sed 's/\.//g')
unfixed_wheel_path=$(find /tmp/carolina_dist_unfixed -name "carolina*$pv*whl")
echo "Found Carolina wheel at $unfixed_wheel_path"
delocate-listdeps $unfixed_wheel_path
delocate-wheel -w /tmp/carolina_dist -v $unfixed_wheel_path
DYLD_LIBRARY_PATH=${EXTENDED_DYLD_LIBRARY_PATH} delocate-listdeps $unfixed_wheel_path
DYLD_LIBRARY_PATH=${EXTENDED_DYLD_LIBRARY_PATH} delocate-wheel -w /tmp/carolina_dist -v $unfixed_wheel_path
echo "Output new carolina wheel to /tmp/carolina_dist"
ls -lh /tmp/carolina_dist
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 8a41fbe

Please sign in to comment.