]> granicus.if.org Git - python/commit
Fix compileall.py so that it fails on SyntaxErrors
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 18 Apr 2001 01:20:21 +0000 (01:20 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 18 Apr 2001 01:20:21 +0000 (01:20 +0000)
commit12b6457e24924ff60cf89fd19a584185a5d6c256
tree6ed970bea82d50c12b89edbbf9be39507588cf20
parent3090694068670371cdbd5b1a3d3c5dbecc83835a
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.
Lib/compileall.py
Makefile.pre.in