-
Notifications
You must be signed in to change notification settings - Fork 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
pip wheel not working on macOS / Python 3.10 #11053
Comments
This is due to Homebrew using distutils.cfg to configure environment paths, which breaks how pip builds the isolated build environment. The config file is not effective when you're in a virtual environment. |
crosslink python/cpython#88142 and Homebrew/homebrew-core#76621 (it says "as of 3.10.2, this issue no longer affects Python 3.10 and later" but I am on 3.10.2?) |
They say that in the sense that users will no longer see warnings about it. It does not mean there are no problems 🙂 |
OK :) do you know how it is even finding a
(or perhaps you meant they were using it in < 3.10, and its non-existence is the cause of problems?) |
Huh interesting. Last time I checked they were using distutils.cfg, maybe they changed something and now the cause is different. |
https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]#L62 This is what they’re doing now. |
Ah so basically The Debian Approach™ The situation is probably similar to pypa/setuptools#3269 I guess. I seem to recall we have an issue on using virtual environment for build isolation (or is it using |
#10720 is what you might be thinking of. |
I did confirm that #11598 fixes the issue when I encountered it (https://gist.github.com/jaraco/c1301b607507706fc276df134374e30e). |
Description
pip fails loading the build backend (
pip._vendor.pep517.wrappers.BackendUnavailable
)Expected behavior
python3 -m pip wheel .
should create amyproject-0.1-py3-none-any.whl
in the cwd.pip version
22.0.4
Python version
3.10
OS
macOS Montery 12.3.1
How to Reproduce
Note: the failure is only reproducible outside of a venv. In a venv the build works 🤷
I have a minimal source tree:
Python 3.10 runtime from
brew install [email protected]
and a clean pip installationBut
pip wheel
fails:Interestingly, the same call succeeds when done in a venv:
Why is that?
Output
I've attached a file with increased verbosity enabled
--> out.txt
Note: There appears to be an assertion firing from this line, however even if I comment out that line the build fails the same way, so it might be a red herring..
Code of Conduct
The text was updated successfully, but these errors were encountered: