GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — gh-155561: Use multi-phase init for Modules/_testlimitedcapi.c by encukou · Pull Request #156052 · python/cpython Conversation
|
|
According to CIs, building _testlimitedcapi fails on Free Threading: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // Use the oldest limited C API version | ||
| # define Py_LIMITED_API 0x03020000 | ||
| #endif | ||
| // Need limited C API version 3.15 for PySlot |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
PySlot is not used. I suppose that this comment is outdated.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit 009ce74 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F156052%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The Alpine Linux buildbot failure looks like a legit bug, but it's unrelated to this change: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Ah, in fact the AMD64 Alpine Linux NoGIL 3.x buildbot already fails on the main branch: I wrote PR gh-156893 to fix the issue. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The "buildbot/AMD64 CentOS9 NoGIL PR" failure is the same as the Alpine Linux issue: test_cppext fails, so PR #156893 will fix it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This change doesn't build Modules/_testlimitedcapi.c with the limited C API on Free Threading yet, but it converts the module to multi-phase init which is already a good step forwards!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…ythonGH-156052) Co-authored-by: Victor Stinner <[email protected]>
…I3T (#155570) (#159144) * gh-155561: Build most _testlimitedcapi files with Py_TARGET_ABI3T (#155570) The following files are not build with Py_TARGET_ABI3T: * Modules/_testlimitedcapi.c * Modules/_testlimitedcapi/heaptype_relative.c * Modules/_testlimitedcapi/vectorcall_limited.c (cherry picked from commit 5dfa606) * gh-155561: Use multi-phase init for Modules/_testlimitedcapi.c (GH-156052) Co-authored-by: Victor Stinner <[email protected]> (cherry picked from commit 112560e) --------- Co-authored-by: Petr Viktorin <[email protected]>
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @encukou, I could not cleanly backport this to Please backport manually with cherry_picker, see the devguide for more information. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.