Skip to content

Make it compatible with Free Threading (aka no-gil) #297

Description

@thepabloaguilar

Since Python 3.14 the no-gil feature is not experimental anymore but optional, when some of the dependencies are not marked that can run safely in those versions Python interpreter fallback to the default mode with GIL. This can impact when running on production but also when running tests:

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

It would be nice if this lib could be compatible with no-gil, if needed I can try to help!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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