[New-bugs-announce] [issue45273] OS-specific frozen modules are built, even on other OSes.
report at bugs.python.org
Thu Sep 23 13:31:45 EDT 2021
New submission from Eric Snow <ericsnowcurrently at gmail.com>:
The list of frozen modules in Python/frozen.c is generated by Tools/scripts/freeze_modules.py. Currently we freeze both posixpath and ntpath, even though for startup we only need one of the two (depending on the OS). In this case both modules are available on all platforms (and only os.path differs), so we might be okay to leave both frozen. The cost isn't high.
However, we may need to accommodate freezing a module only on a subset of supported OSes:
* if the extra cost (to the size of the executable) is too high
* if there's an OS-specific module that is only available on that OS
In that case, we'd need to generate the appropriate ifdefs in Python/frozen.c. We can't just exclude the module during generation since frozen.c is committed to the repo.
components: Interpreter Core
nosy: eric.snow, steve.dower
stage: needs patch
title: OS-specific frozen modules are built, even on other OSes.
versions: Python 3.11
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce