Skip to content

Wheel test: check the GIL only on free-threaded builds - #38

Merged
bdbarnett merged 2 commits into
mainfrom
ostinato/gil-test-fix
Oct 15, 2026
Merged

bdbarnett merged 2 commits into
mainfrom
ostinato/gil-test-fix

Conversation

@bdbarnett

@bdbarnett bdbarnett commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

9.5.51's publish failed at every wheel's test (AssertionError: importing lvgl enabled the GIL): the check added in #37 also ran on regular builds, where the GIL is always on. The check now applies only where sysconfig.get_config_var('Py_GIL_DISABLED') is set. Free-threaded builds still fail if importing lvgl turns the GIL back on.

Before merging, a temporary workflow (since removed) ran the release's own cibuildwheel test on cp313, cp315 and cp315t, on Linux and Windows. All six built and passed, and the cp315t wheels passed the GIL-off check.

9.5.51's publish failed at every wheel's test: the GIL check also ran on
regular builds, where the GIL is always on.
@bdbarnett
bdbarnett merged commit 7e155f9 into main Oct 15, 2026
1 check passed
@bdbarnett
bdbarnett deleted the ostinato/gil-test-fix branch October 15, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant