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

bindings: python: investigate free threaded builds #117

Open
vfazio opened this issue Dec 7, 2024 · 3 comments
Open

bindings: python: investigate free threaded builds #117

vfazio opened this issue Dec 7, 2024 · 3 comments

Comments

@vfazio
Copy link
Contributor

vfazio commented Dec 7, 2024

@brgl 3.13 was released just a few days ago. We can certainly add 3.13 wheels. I think we'd skip free-threaded wheels for now, however, as I'm not up-to-date on that feature and what changes may be required from the bindings to play nice in a GIL-less build.

Ha! Is there any writeup on this? I would definitely want to make sure the bindings to work fine without the GIL.

https://peps.python.org/pep-0703/

https://docs.python.org/3/whatsnew/3.13.html#free-threaded-cpython

https://docs.python.org/3/c-api/module.html#c.Py_mod_gil

https://py-free-threading.github.io/porting/

Originally posted by @vfazio in #93 (comment)

@vfazio
Copy link
Contributor Author

vfazio commented Dec 8, 2024

I don't know if we should be defensive and throw a compile error if a gil-less build is attempted until we've had a chance to test and validate everything works as expected.

@brgl
Copy link
Owner

brgl commented Dec 9, 2024

Does any distro ship GIL-less python 3.13 yet? I'm pretty sure it will make its way into yocto soon, this is when I'll most likely start playing with it. Until then, I don't think we should really do anything about it.

@vfazio
Copy link
Contributor Author

vfazio commented Dec 10, 2024

@brgl looks like Fedora ships 3.13 as part of f41+: https://docs.fedoraproject.org/en-US/fedora/latest/release-notes/developers/

and it looks like there are build changes and rpms for freethreading, at least for f42, but they're probably also available for f41

https://src.fedoraproject.org/rpms/python3.13/c/84d78b385a57306af12b04922f60d516e6e8be49

https://koji.fedoraproject.org/koji/buildinfo?buildID=2599772

https://koji.fedoraproject.org/koji/rpminfo?rpmID=40917017

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