-
Notifications
You must be signed in to change notification settings - Fork 2.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
Update 'packaging' 20.4 -> 20.8 #3530
Update 'packaging' 20.4 -> 20.8 #3530
Conversation
I tried this fix by installing
...however I found that I do not have a deep understanding of the internals of https://github.com/python-poetry/poetry-core/blob/master/vendors/pyproject.toml Changing that file to require |
Is there a way to help with this? Poetry on macOS Big Sur (the Intel version) cannot install binary wheels; since NumPy doesn't build out of the box on macOS, this means no NumPy in poetry. :'( Bumping to 20.8 will fix Intel Big Sur (and the next release will fix Apple Silicon Big Sur). |
This PR only changes the lock file. It needs to update the pyproject.toml file. @barentsen is correct, poetry-core needs to be updated too. PR 125 seems to do it but I haven't fully tested. Here's how I got pipx to work (note: I'm using a branch from my fork of poetry, not the branch for this PR but I don't know what the version of
Could someone on Big Sur test this out (haven't migrated because of issues like this, among many others) so we can see if we can get a patch for people. Or at least have a recipe for Big Sur folks. |
Was able to test on another machine with Big Sur. Didn't seem to work. |
@alexifm do you have any details? |
Yea, I guess "it didn't work" isn't helpful. But unfortunately I don't have much else to say. Installing numpy worked but it took a while so I suspected it wasn't a wheel. I tried pyarrow instead and that confirmed it was compiling the source. I don't really know what else to look for. I couldn't see anything in the verbose poetry logs that indicated anything about wheel vs source. |
I just tested the lines above (on Python 3.9, but otherwise the same), and it worked just fine. NumPy installed in about 2 seconds (and NumPy can't build from source in the default environment, I haven't set up the site cfg or variables requires to build it on macOS). |
Okay, so I botched a couple of things. One of them really dumb and not something I want to talk about. But, I got it to work. One key thing is pip needs to be updated too, naturally. The other is there actually needs to be a wheel for the package (pyarrow doesn't have a wheel for 3.9) |
I did another test: I just installed the latest published poetry. New first line in the steps above:
Worked just fine. Seems like we just need to get @gi0baro's PR merged in and then upgrade to the new poetry-core. |
The fix has landed in |
I just got my M1 machine a few minutes ago, I can test something if helpful. I released boost-histogram with a Universal2 wheel, but it depends on NumPy, so can't use it without system site packages yet. :/ |
If a project changes from poetry to:
...will Big Sur work for that package without an update to this repo? |
Unfortunately, no, @max-sixty. |
Looks like this was done here 9 days ago and so this is no longer needed? Does anyone know when this latest version will be released with this commit? |
What would it take to make a release, assuming that's what's require for poetry to work with Big Sur? |
FYI I just published a binary version of Poetry that might solve the issue on Big Sur (intel). |
Looks like this is fixed in https://github.com/python-poetry/poetry/releases/tag/1.1.5 I have tested this version and I am now downloading wheels rather than building from source for the packages I would expect. Thanks for the discussion and thanks @sdispater for having released this fix. |
Closing this as this does not seem to be needed anymore as per above comments. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
closes #3458
Pull Request Check List
Resolves: #3458