-
Notifications
You must be signed in to change notification settings - Fork 205
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
Publish cp313t (free-threaded) wheels #1242
Comments
#1180 already updates pyo3 to 0.22, so anyone taking on the work for 0.23 should use that as the base probably |
Thanks! After building with that PR I'm able to get some more useful compiler errors and warnings:
It looks like almost everything is about the introduction of Anyone trying to do this with a free-threaded Python may run into the fact that both |
Hello,is cp313t available now? |
Not yet but it looks like the update to PyO3 0.22 was merged so this is unblocked. I'll take a look at this soon. |
Now that PyO3 has |
Unfortunately because of pypa/hatch#1801 both CI and contributors who want to build libcst will need to install a patched version of python-zstandard to get past a build issue. This will only happen on the free-threaded build so we can add some documentation to help out. Please let me know if that is problematic for some reason. |
I realized today that previous attempts to run the LibCST tests using I managed to build pip install git+https://github.com/hynek/argon2-cffi-bindings@refs/pull/70/head --no-build-isolation
pip install setuptools setuptools_rust setuptools_scm wheel
python -m pip install -e ".[dev]" --no-build-isolation
python -m libcst.tests This works around a build error in @zsol are you ok with adding a CI job that runs the libcst tests using a free-threaded interpreter set up like that, without using hatch? |
Yeah sure, let's do it. We could also just have the CI job not install jupyter and then we won't need the argon PR and can keep build isolation |
Currently
pip install libcst
will do a from-source build on free-threaded 3.13.0:The build succeeds, but it probably shouldn't, and immediately segfaults if I try to import anything that imports the native module:
I think the first step is likely going to be updating the PyO3 dependency to 0.23 once that comes out (hopefully this week). Since the crate is at PyO3 0.20 right now, updating to 0.21 and 0.22 first will likely help.
The text was updated successfully, but these errors were encountered: