-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] name/version from pyproject.toml is not respected on macOS #3291
Comments
Hi @slonopotamus , the support for the |
The configuration is missing |
Please could you repeat the experiment adding a |
I've forced setuptools-62.1 and explicitly specified See updated run. Behavior is still the same (Windows/Linux works, macOS doesn't). I also added
|
Sorry @slonopotamus , I was trying to reply using the phone app and I ended up for some reason editing your comment instead of posting a new one... |
Can you do other 2 experiments please? (unfortunately I don't have access to a macOS machine to test it myself) Can you update any/all global installation of setuptools also before installing the package? Can you also try using These experiments will serve to rule out the possibility the environment pip is using for the build is leaking... |
Everything started to work properly if I do |
Ummm... it would seem that there is a leak on the environment pip is using for the build. Any chance this is related to pypa/pip#11053 (comment)? |
Could be... But. The thing is that I observe the same behavior even without any Homebrew, but with vanilla Python 3.8.9 that comes bundled with macOS 12.3.1. Note that I cannot easily upgrade system setuptools, and actually would like to avoid doing that. I can (Sorry for this being a screenshot instead of text) |
Workaround: |
If the workaround is indeed If that is the case, there is not much setuptools can do here, as it assumes the correct version is ensured by the build frontend. |
So, should I instead report this to pip? |
And yes, |
Very similar issue on Ubuntu 22.04: #3269 And they agreed it should be fixed on pip side: pypa/pip#6264 |
So, I think this can be closed, because the root of the issue is not in setuptools. |
setuptools version
60.10.0
Python version
3.9.12
OS
macOS 12.3.1 (Monterey)
Additional environment information
For your convenience, here's a test project that reproduces described behavior on GitHub Actions. You can see problematic build output here.
Note that exactly the same steps are done on Windows and Ubuntu and bug doesn't occur there.
For comparison, here's the list of package versions on different OSes:
macOS (broken):
Windows (works):
Ubuntu (works):
Description
setuptools installs packages as
UNKNOWN
even though they have name/version specified in pypackage.tomlExpected behavior
name/version from
pyproject.toml
is respectedHow to Reproduce
Create a directory with a trivial
pyproject.toml
:And then install it with
pip3 install --user .
Output
pyproject.toml:
pip3 output:
The text was updated successfully, but these errors were encountered: