Skip to content

Python 3.13t supportΒ #300

@davidhewitt

Description

@davidhewitt

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 πŸ™ˆ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions