]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45019: Add a tool to generate list of modules to include for frozen modules ...
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 30 Aug 2021 23:25:11 +0000 (17:25 -0600)
committerGitHub <noreply@github.com>
Mon, 30 Aug 2021 23:25:11 +0000 (17:25 -0600)
commit044e8d866fdde3804bdb2282c7d23a8074de8f6f
treeed2fdeb3bacec221e5ee96ad3544667ab55d6376
parent5246dbc2a12bf8e64e18efee2fdce02a350bbf09
bpo-45019: Add a tool to generate list of modules to include for frozen modules (gh-27980)

Frozen modules must be added to several files in order to work properly. Before this change this had to be done manually. Here we add a tool to generate the relevant lines in those files instead. This helps us avoid mistakes and omissions.

https://bugs.python.org/issue45019
19 files changed:
.gitattributes
.github/workflows/build.yml
.gitignore
Doc/c-api/init.rst
Makefile.pre.in
Misc/NEWS.d/next/Build/2021-08-26-13-10-46.bpo-45019.e0mo49.rst [new file with mode: 0644]
PCbuild/_freeze_module.vcxproj [moved from PCbuild/_freeze_importlib.vcxproj with 79% similarity]
PCbuild/_freeze_module.vcxproj.filters [moved from PCbuild/_freeze_importlib.vcxproj.filters with 76% similarity]
PCbuild/pcbuild.proj
PCbuild/pcbuild.sln
PCbuild/readme.txt
Programs/_freeze_module.c [moved from Programs/_freeze_importlib.c with 53% similarity]
Python/frozen.c
Python/frozen_modules/hello.h [moved from Python/frozen_hello.h with 91% similarity]
Python/frozen_modules/importlib__bootstrap.h [moved from Python/importlib.h with 99% similarity]
Python/frozen_modules/importlib__bootstrap_external.h [moved from Python/importlib_external.h with 99% similarity]
Python/frozen_modules/zipimport.h [moved from Python/importlib_zipimport.h with 99% similarity]
Tools/scripts/freeze_modules.py [new file with mode: 0644]
Tools/scripts/update_file.py