From: Christian Heimes Date: Wed, 21 Nov 2007 02:50:06 +0000 (+0000) Subject: Final fix for #1403 X-Git-Tag: v2.6a1~1024 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc7f26bf207ee17e2c1b3e6545e145942aff612d;p=python Final fix for #1403 The Windows installer and some Linux distros are using compileall to compile all py files in the Lib/ directory. However no test exists to check if all py files can be compiled. I figured out that make testall is the easiest way to test compileall. --- diff --git a/Makefile.pre.in b/Makefile.pre.in index aac765b0e9..70e5b0e962 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -591,6 +591,8 @@ test: all platform $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) testall: all platform + -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f + $(TESTPYTHON) Lib/compileall.py -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall