[Python-bugs-list] [ python-Bugs-653301 ] py_compile does not return error code

noreply@sourceforge.net noreply@sourceforge.net
Fri, 13 Dec 2002 07:27:34 -0800


Bugs item #653301, was opened at 2002-12-13 15:27
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=653301&group_id=5470

Category: Build
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Ferris (mferris1)
Assigned to: Nobody/Anonymous (nobody)
Summary: py_compile does not return error code

Initial Comment:
Since py_compile.compile() does not return an error code, the 
compile_all module does not return an error code and my ant build 
process continues merrily along even though it should 
failOnError.

This appears to be related to an incomplete fix 
for bug 412436.  The download attached to that defect included 
changes to py_compile.py and compileall.py.  It looks like the 
py_compile.py changes were not implemented.

A simple 
fix that has been working for me is to change 
the
py_compile.py file as follows.  This diff was done against 
version 1.18 of py_compile.py:
69c69
<         return 0
---
>         
return
83d82
<       return 1

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=653301&group_id=5470