Skip to content

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented Nov 6, 2025

Pass the limited API options only when building for non-free-threading CPython versions. Passing the flags on other interpreters (such as PyPy or GraalPy) or free-threading CPython versions results in build failures due to the limited API not being supported.

While this package doesn't support free-threading Python right now, I think it makes sense to make the condition future-proof while I'm already fixing PyPy builds.

See also cython/cython#7279

mgorny and others added 2 commits November 6, 2025 07:49
Pass the limited API options only when building for non-free-threading
CPython versions.  Passing the flags on other interpreters (such
as PyPy or GraalPy) or free-threading CPython versions results in build
failures due to the limited API not being supported.

While this package doesn't support free-threading Python right now,
I think it makes sense to make the condition future-proof while I'm
already fixing PyPy builds.

See also cython/cython#7279

Signed-off-by: Michał Górny <[email protected]>
@adiroiban
Copy link
Member

Hi Michał . Thanks for the PR. I have enabled free-threading GHA builds to check the changes.

@mgorny
Copy link
Contributor Author

mgorny commented Nov 6, 2025

Oh, sorry, I've missed the options below. I'll get home in ~1 hr, and can fix it then.

I think this may also fix pp311 build.

Signed-off-by: Michał Górny <[email protected]>
@mgorny
Copy link
Contributor Author

mgorny commented Nov 6, 2025

All green now :-).

@adiroiban
Copy link
Member

Thanks for the fix :)

Let me know if you need a new release soon.
I can trigger a release... otherwise, we can wait and do a new release together with other fixes.

@mgorny
Copy link
Contributor Author

mgorny commented Nov 6, 2025

I suppose it depends on how "soon" that is. I suppose we can stay on the old version for the time being, but would appreciate a new one in case Twisted were to start requiring the new version.

@adiroiban
Copy link
Member

I will merge and look to trigger a new release.

Twisted will require soon a new version of this test helper, as part of the work to support Python 3.14

Copy link
Member

@adiroiban adiroiban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT :)

new release PR at #18

@adiroiban adiroiban merged commit ac986d8 into twisted:trunk Nov 6, 2025
5 checks passed
@mgorny mgorny deleted the limited-api branch November 6, 2025 17:42
@mgorny
Copy link
Contributor Author

mgorny commented Nov 6, 2025

Thank you!

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