Correctly pass DYLD_LIBRARY_PATH to delocate#8672
Correctly pass DYLD_LIBRARY_PATH to delocate#8672radarhere wants to merge 3 commits intopython-pillow:mainfrom
Conversation
|
For the benefit of reviewers - #8673 implements the |
|
@freakboy3742 Presumably either this or #8673 can go in the next release for which the deadline to merge would be end of March. |
|
Thanks for the PRs! Yeah, we'll definitely include one or the other in the next release. I don't see too much difference so will flip a coin unless someone would like to argue for one over the other :) |
I'd argue the #8673 is better on the basis that it fixes the problem right next to the place where the problem is created, rather than relying on remembering later that a fix is needed for one specific library case. However, that's a strong opinion, weakly held; both solutions work. In terms of timing - while it's great this will be in the next release, the bug prevents testing of macOS builds on a local machine, so I'd argue it would be beneficial to merge it sooner rather than later. In order to test my iOS patch, I need to have include a version of this patch. |
|
I've just submitted #8743, which I believe is an even better solution, as it fixes the problem at the source; and, with any luck, eventually the patch used by that PR won't be needed. |
|
#8673 has been merged. |
Resolves #8671. Alternative to #8673 and #8743
In #8500, I added
Pillow/pyproject.toml
Line 107 in 128f3f4
However, there is a known problem where using
DYLD_LIBRARY_PATHwith cibuildwheel doesn't propagate to delocate - https://cibuildwheel.pypa.io/en/stable/faq/#macos-passing-dyld_library_path-to-delocateThis isn't a problem in our CI job, but apparently is when running cibuildwheel locally.
This PR uses the suggested fix from cibuildwheel.