-
Notifications
You must be signed in to change notification settings - Fork 59
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
DelocationError instead of automatically updating MacOS version of wheel #211
Comments
Sorry for my lack of reflection - but is the question here about which workaround we should suggest to the user, of the two options a) setting e.g. |
@matthew-brett My question is if both of those two workarounds should be added to the error message, or should Decloate ignore I'm leaning towards ignoring So I need clarification on how important |
I can't give any definitive opinion - but my guess is that |
very very large amount of packages for macOS depends on it. |
I've decided to keep the current behavior and improve the error message. |
* Improve error message for when a MacOS target version is not met Closes #211 Co-authored-by: Matthew Brett <[email protected]>
The MacOS comparability code added in #198 might be too strict. I had expected Delocate to derive the version automatically from its dependencies unless an explicit target version is given. In this case,
MACOSX_DEPLOYMENT_TARGET
is used as an explicit version when it's set and some tool has set it upstream when I didn't expect it, so it's easy to get an error such as this:I was not expecting
MACOSX_DEPLOYMENT_TARGET
to behave this way since I'm unfamiliar with the variable. I had hoped that #198 would automatically handle this case by renaming the wheel, but I had to setMACOSX_DEPLOYMENT_TARGET=10.11
to resolve this.To workaround this issue either set
MACOSX_DEPLOYMENT_TARGET
to a higher version or use the--require-target-macos-version <version>
flag.I could make a PR to fix this but I need to know how others feel about the
MACOSX_DEPLOYMENT_TARGET
variable. Maybe I only need to add instructions on how to configure the target version to this error message. Or maybe the envrioment variable should be one that's less likely to be set by upstream tools.The text was updated successfully, but these errors were encountered: