Commit 56af6c8
Fix macOS wheel bundling by setting DYLD_LIBRARY_PATH for delocate (#698)
* Fix macOS and Linux wheel bundling with library paths
The wheels were broken because delocate (macOS) and auditwheel (Linux)
couldn't find QUIP shared libraries during wheel repair.
Fix for macOS:
- Add QUIP_LIB_PATH environment variable with paths to QUIP libraries
- Set DYLD_LIBRARY_PATH in the repair command so delocate can find them
- Remove the fallback that produced broken wheels
Fix for Linux:
- Add LD_LIBRARY_PATH with QUIP library paths so auditwheel can find them
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Fix GITHUB_WORKSPACE not expanding in cibuildwheel environment
Use CIBW_ENVIRONMENT_PASS_MACOS to pass through GITHUB_WORKSPACE so it's
available when constructing QUIP_LIB_PATH for the delocate repair command.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Fix delocate duplicate libgfortran detection
Find GCC's libgfortran.5.dylib location and put it first in DYLD_LIBRARY_PATH
so delocate finds it from only one consistent location, avoiding the
"Already planning to copy library with same basename" error.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Use brew --prefix to find GCC library path
The find command was failing silently. Use brew --prefix gcc which is more
reliable on GitHub Actions macOS runners.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Set MACOSX_DEPLOYMENT_TARGET=14.0 to match Homebrew libraries
The Homebrew-installed gcc and openblas libraries on macOS 14 runners have
a minimum target of macOS 14.0. Without setting this, delocate fails with:
"Library dependencies do not satisfy target MacOS version 11.0"
Tested locally: delocate successfully bundles all QUIP and Fortran libraries.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Use runner-specific MACOSX_DEPLOYMENT_TARGET
- macos-14 (ARM64): Homebrew libs need macOS 14.0
- macos-15-intel (x86_64): Homebrew libs need macOS 15.0
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
---------
Co-authored-by: Claude Opus 4.5 <[email protected]>1 parent e09d3eb commit 56af6c8
1 file changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
112 | | - | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
| 117 | + | |
115 | 118 | | |
116 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| 125 | + | |
| 126 | + | |
120 | 127 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 128 | + | |
| 129 | + | |
124 | 130 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
| |||
0 commit comments