]> granicus.if.org Git - python/commitdiff
Final fix for #1403
authorChristian Heimes <christian@cheimes.de>
Wed, 21 Nov 2007 02:50:06 +0000 (02:50 +0000)
committerChristian Heimes <christian@cheimes.de>
Wed, 21 Nov 2007 02:50:06 +0000 (02:50 +0000)
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.

Makefile.pre.in

index aac765b0e9e6b33f652359caeaa4c4f05c5f4f5b..70e5b0e9629c2636a0ae4aeb19732d0213bafa49 100644 (file)
@@ -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