-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
python3.9 rejects the macosx_10_9_x86_64 platform tag #64934
Comments
Hi @mattip,
|
@mattip I think your issue is this one pypa/pip#9138 |
Could you build the python3.9 version on a 10.X system (like python3.8, python3.7) to unblock users? |
All Homebrew python versions are now built on 11.0 |
OK, thanks for the clarifications. |
Regarding:
It seems the support for Accelerate was removed in this commit: numpy/numpy#15759 Building 1.19.4 from source right now, on my mac, I get:
and
So something is still clearly searching for Accelerate. I don't know your codebase so I don't know where that's coming from, but I suspect the behaviour you want is a hard failure at this point: that will let users know that they should install a working BLAS implementation. |
The code that is finding and linking Accelerate is here: https://github.com/numpy/numpy/blob/master/numpy/distutils/system_info.py#L2450 @mattip I'd be happy to help fix this, because it's a bug report we also get often. But I need a bit more context, for example as to why that code wasn't removed. |
After numpy/numpy#15759 we no longer search for Accelerate . Whille we could not totally remove the code you point to since |
@mattip I think the good news is: in more recent macOS versions there is no Closing this bug, as the issue probably with pypa/pip#9138 |
I am a NumPy developer and do not use brew. We have been getting reports across the scientific python ecosystem (matplotlib, numpy, pandas, scipy, and more) that
python3.9 -m pip install numpy
is failing to properly install NumPy. It is building from source and linking to the buggy Apple Accelerate library (instead of the OpenBLAS library we ship with our binary wheels. NumPy has a smoke test at import that Accelerate fails, so end-users are trying to install numpy, which is building from source, which does not work.I think we tracked it down to a build problem where python3.9 from HomeBrew is not accepting the
macosx_10_9_x86_64
platform tag. Since the NumPy wheels use that tag,python3.9 -m pip install numpy
will scan available binary packages, not find a compatible one, and trigger a build from source, leading to the situation described above.We tried hard to detect Accelerate in our build system but failed. Maybe you all have some good idea how to avoid using it?
xref numpy/numpy#17784.
The text was updated successfully, but these errors were encountered: