summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-09-16 20:20:52 (GMT)
committerGitHub <noreply@github.com>2021-09-16 20:20:52 (GMT)
commitfdc6b3d9316501d2f0068a1bf4334debc1949e62 (patch)
tree3dc3ff7d35f0ad4b8d4b2464c28b192a014dcceb /Makefile.pre.in
parenta59ede244714455aa9ee8637608e019a20fa2ca6 (diff)
downloadcpython-fdc6b3d9316501d2f0068a1bf4334debc1949e62.zip
cpython-fdc6b3d9316501d2f0068a1bf4334debc1949e62.tar.gz
cpython-fdc6b3d9316501d2f0068a1bf4334debc1949e62.tar.bz2
bpo-45020: Drop the frozen .h files from the repo. (gh-28392)
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. (This is essentially an un-revert of gh-28375.) https://bugs.python.org/issue45020
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in26
1 files changed, 14 insertions, 12 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 3e562d7..fc9822f 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1019,18 +1019,18 @@ Python/ceval.o: $(srcdir)/Python/opcode_targets.h $(srcdir)/Python/ceval_gil.h \
# FROZEN_FILES is auto-generated by Tools/scripts/freeze_modules.py.
FROZEN_FILES = \
- $(srcdir)/Python/frozen_modules/importlib__bootstrap.h \
- $(srcdir)/Python/frozen_modules/importlib__bootstrap_external.h \
- $(srcdir)/Python/frozen_modules/zipimport.h \
- $(srcdir)/Python/frozen_modules/abc.h \
- $(srcdir)/Python/frozen_modules/io.h \
- $(srcdir)/Python/frozen_modules/_collections_abc.h \
- $(srcdir)/Python/frozen_modules/_sitebuiltins.h \
- $(srcdir)/Python/frozen_modules/genericpath.h \
- $(srcdir)/Python/frozen_modules/ntpath.h \
- $(srcdir)/Python/frozen_modules/posixpath.h \
- $(srcdir)/Python/frozen_modules/stat.h \
- $(srcdir)/Python/frozen_modules/__hello__.h
+ Python/frozen_modules/importlib__bootstrap.h \
+ Python/frozen_modules/importlib__bootstrap_external.h \
+ Python/frozen_modules/zipimport.h \
+ Python/frozen_modules/abc.h \
+ Python/frozen_modules/io.h \
+ Python/frozen_modules/_collections_abc.h \
+ Python/frozen_modules/_sitebuiltins.h \
+ Python/frozen_modules/genericpath.h \
+ Python/frozen_modules/ntpath.h \
+ Python/frozen_modules/posixpath.h \
+ Python/frozen_modules/stat.h \
+ Python/frozen_modules/__hello__.h
# End FROZEN_FILES
Python/frozen.o: $(FROZEN_FILES)
@@ -1993,6 +1993,8 @@ distclean: clobber
Modules/ld_so_aix Modules/python.exp Misc/python.pc \
Misc/python-embed.pc Misc/python-config.sh
-rm -f python*-gdb.py
+ -rm -f Python/frozen_modules/*.h
+ -rm -f Python/frozen_modules/MANIFEST
# Issue #28258: set LC_ALL to avoid issues with Estonian locale.
# Expansion is performed here by shell (spawned by make) itself before
# arguments are passed to find. So LC_ALL=C must be set as a separate