summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-04-18 01:20:21 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-04-18 01:20:21 (GMT)
commit12b6457e24924ff60cf89fd19a584185a5d6c256 (patch)
tree6ed970bea82d50c12b89edbbf9be39507588cf20 /Makefile.pre.in
parent3090694068670371cdbd5b1a3d3c5dbecc83835a (diff)
downloadcpython-12b6457e24924ff60cf89fd19a584185a5d6c256.zip
cpython-12b6457e24924ff60cf89fd19a584185a5d6c256.tar.gz
cpython-12b6457e24924ff60cf89fd19a584185a5d6c256.tar.bz2
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.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index f81702b..f2f3336 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -616,9 +616,10 @@ libinstall: $(PYTHON) $(srcdir)/Lib/$(PLATDIR)
done
$(INSTALL_DATA) $(srcdir)/LICENSE $(LIBDEST)/LICENSE.txt
PYTHONPATH=$(LIBDEST) \
- ./$(PYTHON) -tt $(LIBDEST)/compileall.py $(LIBDEST)
+ ./$(PYTHON) -tt $(LIBDEST)/compileall.py -x badsyntax \
+ $(LIBDEST)
PYTHONPATH=$(LIBDEST) \
- ./$(PYTHON) -O $(LIBDEST)/compileall.py $(LIBDEST)
+ ./$(PYTHON) -O $(LIBDEST)/compileall.py -x badsyntax $(LIBDEST)
# Create the PLATDIR source directory, if one wasn't distributed..
$(srcdir)/Lib/$(PLATDIR):