[New-bugs-announce] [issue21338] Silent mode for compileall

Thomas Kluyver report at bugs.python.org
Thu Apr 24 01:29:32 CEST 2014


New submission from Thomas Kluyver:

The compileall module's command line interface has a -q (quiet) flag which suppresses most of the output, but it still prints error messages. I'd like an entirely silent mode with no output.

My use case is byte-compiling Python files as part of a graphical installer. I do this by running:

py -${PY_QUALIFIER} -m compileall -q "$INSTDIR\pkgs"

I'd like to be able to use pyw so a terminal doesn't pop up, but if I do that, it exits early. I think this is due to the issue with stdout/stderr buffers filling up on pythonw.

----------
components: Library (Lib)
messages: 217100
nosy: takluyver
priority: normal
severity: normal
status: open
title: Silent mode for compileall

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21338>
_______________________________________


More information about the New-bugs-announce mailing list