diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-09-16 05:27:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-16 05:27:38 (GMT) |
commit | 9fd87a5fe5c468cf94265365091267838b004b7f (patch) | |
tree | 79cf26f39a77c83e52ac61491fe279c83a52ef35 /Tools | |
parent | 07e737d002cdbf0bfee53248a652a86c9f93f02b (diff) | |
download | cpython-9fd87a5fe5c468cf94265365091267838b004b7f.zip cpython-9fd87a5fe5c468cf94265365091267838b004b7f.tar.gz cpython-9fd87a5fe5c468cf94265365091267838b004b7f.tar.bz2 |
bpo-45020: Revert "Drop the frozen .h files from the repo." (gh-28380)
gh-28375 broke one of the buildbots. Until I figure out why, I'm rolling the change back.
https://bugs.python.org/issue45020
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/scripts/freeze_modules.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Tools/scripts/freeze_modules.py b/Tools/scripts/freeze_modules.py index b2adeb4..89b6616 100644 --- a/Tools/scripts/freeze_modules.py +++ b/Tools/scripts/freeze_modules.py @@ -20,9 +20,8 @@ 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 and .gitignore files -# need to be updated. -MODULES_DIR = os.path.join(ROOT_DIR, 'Python', 'frozen_modules') +# If MODULES_DIR is changed then the .gitattributes file needs 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') @@ -577,6 +576,10 @@ 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' |