Skip to content

Build for limited API only on supported interpreters#17

Merged
adiroiban merged 5 commits into
twisted:trunkfrom
mgorny:limited-api
Nov 6, 2025
Merged

Build for limited API only on supported interpreters#17
adiroiban merged 5 commits into
twisted:trunkfrom
mgorny:limited-api

Conversation

@mgorny

@mgorny mgorny commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

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 <mgorny@gentoo.org>
@adiroiban

Copy link
Copy Markdown
Member

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

@mgorny

mgorny commented Nov 6, 2025

Copy link
Copy Markdown
Contributor Author

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 <mgorny@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
@mgorny

mgorny commented Nov 6, 2025

Copy link
Copy Markdown
Contributor Author

All green now :-).

@adiroiban

Copy link
Copy Markdown
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

mgorny commented Nov 6, 2025

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

@adiroiban adiroiban left a comment

Copy link
Copy Markdown
Member

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

mgorny commented Nov 6, 2025

Copy link
Copy Markdown
Contributor Author

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