PyO3 / maturin-action

GitHub Action to install and run a custom maturin command with built-in support for cross compilation
MIT License
132 stars 37 forks source link

Python 3.13t support #300

Open davidhewitt opened 2 days ago

davidhewitt commented 2 days ago

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 https://github.com/pydantic/jiter/pull/165, I can get it to work but only by:

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 commented 2 days ago

See https://github.com/PyO3/maturin/pull/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 commented 2 days ago

Thanks, commented with a suggestion on that issue 👍