It seems the issue is that `distutils.sysconfig` is being loaded from the stdlib, even though [the distutils hack has an explicit check that submodules are loaded from the locally-bundled copy](https://github.com/pypa/setuptools/blob/dd5a2cec373ffe7eefc087c1cd06fb4e491a7e88/_distutils_hack/__init__.py#L55-L57). _Originally posted by @jaraco in https://github.com/pypa/distutils/issues/16#issuecomment-980043534_
It seems the issue is that
distutils.sysconfigis being loaded from the stdlib, even though the distutils hack has an explicit check that submodules are loaded from the locally-bundled copy.Originally posted by @jaraco in pypa/distutils#16 (comment)