bpo-45950: Fix macOS framework builds of _bootstrap_python (GH-29936)

This commit is contained in:
Christian Heimes 2021-12-06 18:13:53 +02:00 committed by GitHub
parent 98fac8bc18
commit 612e59b53f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 11 deletions

View file

@ -754,7 +754,8 @@ library_to_dict(PyObject *dict, const char *key)
if (PyWin_DLLhModule) {
return winmodule_to_dict(dict, key, PyWin_DLLhModule);
}
#elif defined(WITH_NEXT_FRAMEWORK)
#elif defined(WITH_NEXT_FRAMEWORK) && !defined(PY_BOOTSTRAP_PYTHON)
// _bootstrap_python does not use framework and crashes
static const char modPath[MAXPATHLEN + 1];
static int modPathInitialized = -1;
if (modPathInitialized < 0) {