#ifndef Py_BUILD_CORE_BUILTIN
#define Py_BUILD_CORE_MODULE …
#endif
#include "Python.h"
#include "pycore_importdl.h"
#include "pycore_long.h"
#include "clinic/_sysconfig.c.h"
#ifdef MS_WINDOWS
static int
add_string_value(PyObject *dict, const char *key, const char *str_value)
{
PyObject *value = PyUnicode_FromString(str_value);
if (value == NULL) {
return -1;
}
int err = PyDict_SetItemString(dict, key, value);
Py_DECREF(value);
return err;
}
#endif
static PyObject *
_sysconfig_config_vars_impl(PyObject *module)
{ … }
PyDoc_STRVAR(sysconfig__doc__,
"A helper for the sysconfig module.");
static struct PyMethodDef sysconfig_methods[] = …;
static PyModuleDef_Slot sysconfig_slots[] = …;
static PyModuleDef sysconfig_module = …;
PyMODINIT_FUNC
PyInit__sysconfig(void)
{ … }