You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They're free-threaded wheels, but they still enable GIL when imported. You need to also mark the module as freethreading-compatible.
$ uv run --with=selectolax -p 3.14t python
Installed 1 package in 7ms
Python 3.14.2 free-threading build (main, Dec 9 2025, 19:03:17) [Clang 21.1.4 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import selectolax
<frozen importlib._bootstrap>:491: RuntimeWarning: The global interpreter lock (GIL) has been enabled to load
module 'selectolax.lexbor', which has not declared that it can run safely without the GIL. To override this
behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0.
Activity
rushter commentedon Mar 18, 2026
We already have them.
https://pypi.org/project/selectolax/0.4.7/#files
beer-psi commentedon Mar 18, 2026
They're free-threaded wheels, but they still enable GIL when imported. You need to also mark the module as freethreading-compatible.
rushter commentedon Mar 18, 2026
I've enabled it for the dev build, but I'm not sure if it will work correctly.
rushter commentedon Sep 29, 2026
There is now a dedicated test 5de648b