gh-127405: Add ABIFLAGS to sysconfig variables on Windows (GH-131799)

This commit is contained in:
Xuehai Pan 2025-04-11 23:19:03 +08:00 committed by GitHub
parent 9ded6f0830
commit 26ae05e95c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 99 additions and 7 deletions

View file

@ -67,6 +67,16 @@ _sysconfig_config_vars_impl(PyObject *module)
return NULL;
}
#ifdef Py_DEBUG
PyObject *py_debug = _PyLong_GetOne();
#else
PyObject *py_debug = _PyLong_GetZero();
#endif
if (PyDict_SetItemString(config, "Py_DEBUG", py_debug) < 0) {
Py_DECREF(config);
return NULL;
}
return config;
}