diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-09-16 01:15:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-16 01:15:26 (GMT) |
commit | a9757bf34d8b4cb3c24bbb70d50a06c815e2e8f3 (patch) | |
tree | 990fa427612a87c7951c67133575d50627f42107 /Tools/scripts | |
parent | a75a2577259a55d816de24a4cca16aad74e02aa5 (diff) | |
download | cpython-a9757bf34d8b4cb3c24bbb70d50a06c815e2e8f3.zip cpython-a9757bf34d8b4cb3c24bbb70d50a06c815e2e8f3.tar.gz cpython-a9757bf34d8b4cb3c24bbb70d50a06c815e2e8f3.tar.bz2 |
bpo-45020: Drop the frozen .h files from the repo. (gh-28375)
The main advantage is that the files will no longer show up in diffs and PRs. That means, for a PR, the number of files / lines changed will more clearly reflect the actual change.
https://bugs.python.org/issue45020
Diffstat (limited to 'Tools/scripts')
-rw-r--r-- | Tools/scripts/freeze_modules.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Tools/scripts/freeze_modules.py b/Tools/scripts/freeze_modules.py index 89b6616..b2adeb4 100644 --- a/Tools/scripts/freeze_modules.py +++ b/Tools/scripts/freeze_modules.py @@ -20,8 +20,9 @@ TOOLS_DIR = os.path.dirname(SCRIPTS_DIR) ROOT_DIR = os.path.dirname(TOOLS_DIR) STDLIB_DIR = os.path.join(ROOT_DIR, 'Lib') -# If MODULES_DIR is changed then the .gitattributes file needs to be updated. -MODULES_DIR = os.path.join(ROOT_DIR, 'Python/frozen_modules') +# If MODULES_DIR is changed then the .gitattributes and .gitignore files +# need to be updated. +MODULES_DIR = os.path.join(ROOT_DIR, 'Python', 'frozen_modules') if sys.platform != "win32": TOOL = os.path.join(ROOT_DIR, 'Programs', '_freeze_module') @@ -576,10 +577,6 @@ def regen_pcbuild(modules): projlines = [] filterlines = [] for src in _iter_sources(modules): - # For now we only require the essential frozen modules on Windows. - # See bpo-45186 and bpo-45188. - if src.id not in ESSENTIAL and src.id != '__hello__': - continue pyfile = relpath_for_windows_display(src.pyfile, ROOT_DIR) header = relpath_for_windows_display(src.frozenfile, ROOT_DIR) intfile = ntpath.splitext(ntpath.basename(header))[0] + '.g.h' |