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

Python 3.13t support #300

Closed
davidhewitt opened this issue Nov 19, 2024 · 2 comments
Closed

Python 3.13t support #300

davidhewitt opened this issue Nov 19, 2024 · 2 comments

Comments

@davidhewitt
Copy link
Member

Now that PyO3 0.23 is released, I think users will increasingly be trying to build for freethreaded Python.

What's the correct approach to do this? I have been working on this in pydantic/jiter#165, I can get it to work but only by:

  • sending the path output setup-python instead of an interpreter version, because 3.13t is not recognised by maturin (I think)
  • on manylinux images, manually working out where to look inside the image

It would be nice if setting --interpreter 3.13t as a maturin flag just did the right thing, or maybe there's another similar easy way.

It's more complicated in jiter and pydantic-core because we use PGO optimization so have quite a fiddly build 🙈

@messense
Copy link
Member

See PyO3/maturin#2310 which add -i python3.13t support, I haven't invest much time in it due to lacking 3.13t support in setup-python makes it hard to test it.

@davidhewitt
Copy link
Member Author

Thanks, commented with a suggestion on that issue 👍

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

No branches or pull requests

2 participants