Skip to content

Add Python 3.14 free-threading build support #766

@ericbuehl

Description

@ericbuehl

With the release of Python 3.14, the new free-threaded (no-GIL) mode is becoming more widely used.

It would be great if mysqlclient could confirm compatibility with python3.14t (the free-threaded ABI). Without it, freethreaded users are met with the following message:

$ python
Python 3.14.0rc3 free-threading build (main, Sep 18 2025, 19:37:18) [Clang 20.1.4 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
<frozen importlib._bootstrap>:491: RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module 'MySQLdb._mysql', 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions