gh-142225: Add PyABIInfo_VAR to to _testcapimodule & _testinternalcapi (GH-142833)

This commit is contained in:
Petr Viktorin 2025-12-17 16:33:09 +01:00 committed by GitHub
parent 568a819f67
commit 7d81eab923
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View file

@ -3523,7 +3523,10 @@ _testcapi_exec(PyObject *m)
return 0;
}
PyABIInfo_VAR(abi_info);
static PyModuleDef_Slot _testcapi_slots[] = {
{Py_mod_abi, &abi_info},
{Py_mod_exec, _testcapi_exec},
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},

View file

@ -2696,7 +2696,10 @@ module_exec(PyObject *module)
return 0;
}
PyABIInfo_VAR(abi_info);
static struct PyModuleDef_Slot module_slots[] = {
{Py_mod_abi, &abi_info},
{Py_mod_exec, module_exec},
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{Py_mod_gil, Py_MOD_GIL_NOT_USED},

View file

@ -76,6 +76,7 @@
'PyBufferProcs',
'PyStructSequence_Field[]',
'PyStructSequence_Desc',
'PyABIInfo',
}
# XXX We should normalize all cases to a single name,