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

ENH: Python 3.13 free-threading support #59057

Open
7 tasks done
lysnikolaou opened this issue Jun 20, 2024 · 8 comments
Open
7 tasks done

ENH: Python 3.13 free-threading support #59057

lysnikolaou opened this issue Jun 20, 2024 · 8 comments
Labels
Build Library building on various platforms Enhancement Python 3.13

Comments

@lysnikolaou
Copy link
Contributor

lysnikolaou commented Jun 20, 2024

This aims to be a tracking issue for all work necessary to support the free-threaded build of Python 3.13. A very high-level list of steps is (more details to follow as I investigate more issues):

@xbit18
Copy link

xbit18 commented Jun 20, 2024

Hi! I'm currently writing a thesis on free-threading python and wonder if there's any estimate on how much time this would take

@lysnikolaou
Copy link
Contributor Author

Hello! An initial investigation shows that it should be relatively straight-forward to get a passing test suite under the free-threaded build. However, if you're looking for a full release with support for it, it's still probably going to be a few weeks/months, since Python 3.13 is not final (not even in rc) yet.

Maybe a maintainer could answer this better than me as well.

@xbit18
Copy link

xbit18 commented Jun 21, 2024

Yeah I'm only in need of a "preliminary" implementation to run some really simple tests involving a dataframe with python 3.13.0b2 with the free threading build. Right now it's not even installing correctly.

@lesteve
Copy link
Contributor

lesteve commented Aug 1, 2024

Yeah I'm only in need of a "preliminary" implementation to run some really simple tests involving a dataframe with python 3.13.0b2 with the free threading build. Right now it's not even installing correctly.

@xbit18 you probably have managed to do it since your last comment but the https://py-free-threading.github.io doc has a lot of useful info in particular:

@lysnikolaou
Copy link
Contributor Author

lysnikolaou commented Oct 16, 2024

I'm trying to get Windows wheels to build successfully as well. It seems like it's an easy task to build them, but not as easy to test them, because Windows wheels are tested on windowsservercore instead of the GHA runner.

@mroeschke You implemented this in #53087. Is there any way around it? There's this comment in the workflow file. Could you elaborate on it?

# Testing on windowsservercore instead of GHA runner to fail on missing DLLs

The Docker images do not contain a free-threaded build, so it's currently impossible to do this for the free-threaded wheels. Should we enable cibuildwheel tests and disable the Docker ones for free-threaded Windows wheels maybe? Would that be okay?

@mroeschke
Copy link
Member

Maybe it's not entirely necessary to test these wheels on a separate Docker image anymore and just use the windows images from the GHA runner if that makes this easier

@ngoldbaum
Copy link
Contributor

ngoldbaum commented Oct 31, 2024

FWIW @lesteve just let me know over in a scikit-learn issue that scikit-learn is going to need the docker images as well.

@Alec1198055421
Copy link

hi, How long until Python 3.13's free-threading support is complete?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Enhancement Python 3.13
Projects
None yet
Development

No branches or pull requests

7 participants