-
-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Python@3.9 fails to install on ARM Big Sur #65866
Conversation
Python expects a float for the MACOSX_DEPLOYMENT_TARGET compiler option, if it is an integer it fails to install. For some reason on Arm64 Big Sur the call to MacOs.version returns 11.
I can confirm that python@3.9 (as part of |
Confirmed that this helped me finish installing ninja |
Because
11 is a valid value for |
I confirm that this issue affects not only M1, but even old macs. Applying the change locally fixes the problem. Thank you @lewisrobbins for this! Since python is a dependency for other packages, I think this issue hits many users. Not sure where it should be fixed, but would be lovely to avoid the need of manual patching 😸 |
I created a bug report here on the Python project, hopefully that's the right place to put it: https://bugs.python.org/issue42505 |
I've reported it to Python: https://bugs.python.org/issue42504 |
I closed my issue and linked back to yours since we created them at almost the same time. 😄 |
And opened a pull request with a fix: python/cpython#23556 |
Upstream patch being added: #65953 |
Upstream Python issue: https://bugs.python.org/issue42504 Fix taken from Homebrew/homebrew-core#65866
Upstream Python issue: https://bugs.python.org/issue42504 Fix taken from Homebrew/homebrew-core#65866
Python expects a float for the MACOSX_DEPLOYMENT_TARGET compiler option,
if it is an integer it fails to install.
For some reason on Arm64 Big Sur the call to
MacOS.version
returns 11.This fixes Homebrew/brew#9329
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?