Library dependencies do not satisfy target MacOS version 12.0: libyaml-0.2.dylib has a minimum target of 14.0 #1864
Replies: 1 comment
-
Neither brew nor MacPorts lets you build libraries targeted at older versions of MacOS by setting MACOSX_DEPLOYMENT_TARGET in the environment. Maybe there's a way to get MacPorts to build older versions -- I couldn't find a way to do it, though. I ended up changing my build process to build everything from source and it's working on all platforms again. It's still pretty brittle. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Somewhat recently, the MacOS wheel builds started failing for my project: https://github.com/scott-guthridge/pylibvna. Linux and Windows are still working. The problem is that despite setting MACOSX_DEPLOYMENT_TARGET=12.0, brew install of two libraries is building them at version 14.0, and the repair wheel step now checks for version compatibility and is failing.
I read that homebrew is not intended for building redistributable software, if that's the case, then what should I use? MacPorts? Build everything from source? A convenient thing of using brew or other package tool is that it deals with dependencies without me having to chase down the source and figure out which version is latest.
More detail follows. Note that I just added the "benv" and MACOSX_DEPLOYMENT_TARGET stuff, which you won't see in github yet because I'm working in a private test repo trying to get the build working again. I believe I'm showing all relevant changes below.
.github/workflows/release.yml:
pyproject.toml:
In the before-build section, we're building libvna (my library), which pulls in libyaml as a dependency. You can see my "before-build: 12.0" debug line showing that MACOSX_DEPLOYMENT_TARGET is getting passed down:
The build wheels step succeeds:
Finally, we fail in repair wheel:
Pretty much every time I try to push a new release, something new is failing in the build. I wish it were easier to maintain a reliable build process for Cython wheels.
I would appreciate suggestions on how to get the library versions right for MacOS. And if you see something else not best practice, feel free to comment on that, too. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions