-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set MACOSX_DEPLOYMENT_TARGET for all stages? #563
Comments
Ah, I see. Yes the BEFORE_ALL commands on macOS and Windows run outside of a cibuildwheel Python environment, so we haven't set our environment variables yet. Your workflow sounds sensible to me. (The only snag I can think of will be that once I'm not sure that we've built-in the assumption that BEFORE_ALL is for building dependencies exactly, but, it does seem pretty harmless to add But it's probably easier to do the simple thing - adding |
|
Just in case anyone comes looking here (like me) and doesn't immediately know how to "set MACOS_DEPLOYMENT_TARGET in the global env", what you want is to add the step
before your
where |
* Use `pypa/cibuildwheel` to build wheels * Set `meson_version: '>= 1.1.0'` * Add dynamic versio * Bump pypa/[email protected] * Make pfapack/_version.py executable * install pkg-config * setup fortran in wheel build * Set MACOSX_DEPLOYMENT_TARGET pypa/cibuildwheel#563 * Install with yum * rm pkg-config * add macos-14 * Use CIBW_TEST_EXTRAS * only MACOSX_DEPLOYMENT_TARGET on mac * yum pkgconfig * use openblas-devel * no lapack * setup python * setup python * try openblas first * Try manylinux_2_28 * env vars in pyproject.toml * test cmd * openblas finding * skip * Skip 32 bit Windows * skip more * skip -musllinux * Skip all that scipy skips too
I recently adopted cibuildwheel (it is wonderful, thank you!), and made a broken release on older macs. The mistake I made was failing to set MACOSX_DEPLOYMENT_TARGET for the CIBW_BEFORE_ALL stage. I was surprised to see that CIBW has the feature to set MACOSX_DEPLOYMENT_TARGET, but doesn't do it for all stages.
#306 sets MACOSX_DEPLOYMENT_TARGET for python commands, but I was building a library dependency in CIBW_BEFORE_ALL.
My wheels are roughly:
So my question is: should I have built the library in a different stage, or does it make sense to set the default MACOSX_DEPLOYMENT_TARGET for all commands, not just the python environment?
Fixing it was easy enough (set MACOSX_DEPLOYMENT_TARGET in global env)
The text was updated successfully, but these errors were encountered: