Skip to content
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

Should upgrade to Python 3.11 #304

Open
justvanrossum opened this issue Dec 20, 2022 · 5 comments
Open

Should upgrade to Python 3.11 #304

justvanrossum opened this issue Dec 20, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@justvanrossum
Copy link
Owner

Relates to #222.

  • Upgrading to 3.11 should help us build for "universal2" (M1 + Intel in one bundle)
  • ...but this is currently not a smooth transition
  • For one, some packages (notably numpy) currently do not offer universal2 wheels
  • Also: building on Intel will choose Intel wheels when available, which makes a build non universal
@justvanrossum justvanrossum added the enhancement New feature or request label Dec 20, 2022
@anthrotype
Copy link
Collaborator

For one, some packages (notably numpy) currently do not offer universal2 wheels

I mentioned this to Frederik the other day, fegarding the lack of universal2 wheels for numpy. There's a tool called delocate-fuse (available after pip install delocate) that can merge two mac wheels with different architectures arm64 and x86_64 into a "fat" one that has universal2 tag.
So for numpy you should be able to download the two wheels from PyPI, then use the delocate-fuse script to merge them into a universal2 wheel:
https://github.com/matthew-brett/delocate#making-dual-architecture-binaries

@justvanrossum
Copy link
Owner Author

Sure, but this requires fiddling with the workflow and more testing, which I don't want to do right now...

@justvanrossum
Copy link
Owner Author

justvanrossum commented Dec 20, 2022

And I also mean: thank you! I hope to get back to this later.

@anthrotype
Copy link
Collaborator

requires fiddling with the workflow...

yeah, fair enough

building on Intel will choose Intel wheels when available

I think pip has a --platform option as well, you may try to tinker with that

@justvanrossum
Copy link
Owner Author

I think pip has a --platform option as well, you may try to tinker with that

I did tinker with that today, and it's one of the main reasons I want to postpone to later: --platform universal2 requires --no-deps and an explicit --target, both of which are kind of a bummer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants