Skip to content

Prevent greenlet from building on free-threaded Python #423

@jamadden

Description

@jamadden

We don't set the flag that indicates we're compatible with free-threading, so loading us would automatically enable the GIL according to the Python documentation. It is thus misleading that we can even build on a free-threaded Python and get the "t" suffix, e.g., "313t".

The make-manylinux script has some support for skipping free-threaded Python's, but it's neither complete nor sufficient.

The trouble is that CPython doesn't document a way to detect at compile time that it is built on free-threading. At least, not that I could see in the "Porting to 3.13" and "C API Changes" sections of the release notes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestFeature requestHelp WantedInternalDiscussions on processes, etc, that don't directly face end users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions