Éric Araujo added the comment:

We all agree Python files with invalid syntax should be allowed, but some error 
message should be logged.  From the py_compile docs, this is already what the 
compile function does if the doraise argument is false (default), so what’s 
needed here is a unit test that makes sure we get a warning and the bad file is 
included in the sdist.

(I think we should not be concerned by the direct print to stderr instead of 
using proper logging: distutils uses its own logging system which lets one 
control the verbosity but does not have flexible filters, handlers and 
configuration, so in effect it’s like print to stderr.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7918>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to