[Python-checkins] CVS: python/dist/src Makefile.pre.in,1.35,1.36

Jeremy Hylton jhylton@users.sourceforge.net
Tue, 17 Apr 2001 18:20:23 -0700


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv24014

Modified Files:
	Makefile.pre.in 
Log Message:
Fix compileall.py so that it fails on SyntaxErrors

The changes cause compilation failures in any file in the Python
installation lib directory to cause the install to fail.  It looks
like compileall.py intended to behave this way, but a change to
py_compile.py and a separate bug defeated it.

Fixes SF bug #412436

This change affects the test suite, which contains several files that
contain intentional errors.  The solution is to extend compileall.py
with the ability to skip compilation of selected files.

NB compileall.py is changed so that compile_dir() returns success only
if all recursive calls to compile_dir() also check success.


Index: Makefile.pre.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/Makefile.pre.in,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** Makefile.pre.in	2001/04/14 17:57:07	1.35
--- Makefile.pre.in	2001/04/18 01:20:21	1.36
***************
*** 617,623 ****
  	$(INSTALL_DATA) $(srcdir)/LICENSE $(LIBDEST)/LICENSE.txt
  	PYTHONPATH=$(LIBDEST) \
! 		./$(PYTHON) -tt $(LIBDEST)/compileall.py $(LIBDEST)
  	PYTHONPATH=$(LIBDEST) \
! 		./$(PYTHON) -O $(LIBDEST)/compileall.py $(LIBDEST)
  
  # Create the PLATDIR source directory, if one wasn't distributed..
--- 617,624 ----
  	$(INSTALL_DATA) $(srcdir)/LICENSE $(LIBDEST)/LICENSE.txt
  	PYTHONPATH=$(LIBDEST) \
! 		./$(PYTHON) -tt $(LIBDEST)/compileall.py -x badsyntax \
! 	        $(LIBDEST)
  	PYTHONPATH=$(LIBDEST) \
! 		./$(PYTHON) -O $(LIBDEST)/compileall.py -x badsyntax $(LIBDEST)
  
  # Create the PLATDIR source directory, if one wasn't distributed..