[Python-checkins] cpython: Avoid rebuilding all C files when importlib.h is updated.

antoine.pitrou python-checkins at python.org
Mon Apr 16 18:32:06 CEST 2012


http://hg.python.org/cpython/rev/2a532a322a9c
changeset:   76356:2a532a322a9c
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Mon Apr 16 18:29:28 2012 +0200
summary:
  Avoid rebuilding all C files when importlib.h is updated.

files:
  Makefile.pre.in |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -702,6 +702,8 @@
 Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \
 				$(BYTESTR_DEPS)
 
+Python/frozen.o: $(srcdir)/Python/importlib.h
+
 Objects/typeobject.o: $(srcdir)/Objects/typeslots.inc
 $(srcdir)/Objects/typeslots.inc: $(srcdir)/Include/typeslots.h $(srcdir)/Objects/typeslots.py
 	$(PYTHON) $(srcdir)/Objects/typeslots.py < $(srcdir)/Include/typeslots.h > $(srcdir)/Objects/typeslots.inc
@@ -792,7 +794,6 @@
 		$(srcdir)/Include/unicodeobject.h \
 		$(srcdir)/Include/warnings.h \
 		$(srcdir)/Include/weakrefobject.h \
-		$(srcdir)/Python/importlib.h \
 		pyconfig.h \
 		$(PARSER_HEADERS)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list