Skip to content

Conversation

@cclauss
Copy link
Contributor

@cclauss cclauss commented Oct 26, 2025

% uvx --with=rapidfuzz python3.14t -c "import rapidfuzz"

<frozen importlib._bootstrap>:491: RuntimeWarning: The global interpreter lock (GIL) has been enabled
    to load module 'rapidfuzz.distance.metrics_cpp', 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.

https://www.python.org/downloads/release/python-3140/

@maxbachmann

% pytest # Tests pass, but the GIL is disabled.

=============================== warnings summary ===============================
<frozen importlib._bootstrap>:491
  <frozen importlib._bootstrap>:491: RuntimeWarning: The global interpreter lock (GIL) has been enabled
    to load module 'rapidfuzz.distance.metrics_cpp', 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.

@cclauss cclauss changed the title GitHub Actions: Run pytest on free threaded Python 3.14t Running pytest disables the GIL on free threaded Python 3.13t and 3.14t Oct 26, 2025
@cclauss cclauss changed the title Running pytest disables the GIL on free threaded Python 3.13t and 3.14t import rapidfuzz disables the GIL on free threaded Python 3.13t and 3.14t Oct 30, 2025
@maxbachmann
Copy link
Member

Most of this was already merged via a separate dependabot update. I added python3.14 and python3.14t separately

@cclauss cclauss deleted the patch-1 branch October 30, 2025 22:08
@cclauss
Copy link
Contributor Author

cclauss commented Oct 30, 2025

% uvx --with=git+https://github.com/rapidfuzz/RapidFuzz python3.14t -c "import rapidfuzz"

    Updated https://github.com/rapidfuzz/RapidFuzz (8f9f09bc83b04cf26696f579261a5a7dca59fa35)
      Built git+https://github.com/rapidfuzz/RapidFuzz
      Built rapidfuzz @ git+https://github.com/rapidfuzz/RapidFuzz@8f9f09bc83b04cf26696f579261a5a7dca59fa35
Installed 1 package in 2ms

@maxbachmann
Copy link
Member

👍 the release build with support for free threading is currently running

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

Successfully merging this pull request may close these issues.

2 participants