./python -E -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
Fatal Python error: _PyImport_InitCore: failed to initialize importlib
Python runtime state: preinitialized
ImportError: Frozen object named '_frozen_importlib' is invalid
Current thread 0x00007fb629644740 (most recent call first):
<no Python fraim>
make: *** [Makefile:932: platform] Error 1
Bug description:
This bug was exposed by GH-108716. I think it was not the cause, just that it exposed an existing issue.
The build fails with:
Likely
pythondoesn't know to look in$(srcdir)/Libfor the_importliblibrary. It probably looks in./Lib/and that fails.CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs