Python@3.9 fails to install on ARM Big Sur#65866
Python@3.9 fails to install on ARM Big Sur#65866lewis262626 wants to merge 1 commit intoHomebrew:masterfrom
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.versionreturns 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>)?