diff options
author | Christian Heimes <christian@python.org> | 2021-12-06 16:13:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 16:13:53 (GMT) |
commit | 612e59b53f0c730ce1b881f7c08dc6d49f02c123 (patch) | |
tree | 175bec8ab0204e65dbecc6aed19e09265439b9eb /Modules | |
parent | 98fac8bc183c113903403793ffe411358ee40d8a (diff) | |
download | cpython-612e59b53f0c730ce1b881f7c08dc6d49f02c123.zip cpython-612e59b53f0c730ce1b881f7c08dc6d49f02c123.tar.gz cpython-612e59b53f0c730ce1b881f7c08dc6d49f02c123.tar.bz2 |
bpo-45950: Fix macOS framework builds of _bootstrap_python (GH-29936)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/getpath.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c index f77b18e..8f90a70 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -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) { |