[issue21338] Silent mode for compileall

2014-10-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34436ae65523 by Berker Peksag in branch 'default': Issue #21338: Add silent mode for compileall. https://hg.python.org/cpython/rev/34436ae65523 -- nosy: +python-dev ___ Python tracker

[issue21338] Silent mode for compileall

2014-10-15 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Thomas. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21338

[issue21338] Silent mode for compileall

2014-10-04 Thread Berker Peksag
Berker Peksag added the comment: Here's an updated patch. Thanks David. -- Added file: http://bugs.python.org/file36808/issue21338.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21338

[issue21338] Silent mode for compileall

2014-09-29 Thread R. David Murray
R. David Murray added the comment: Berker: I had some review comments pending on the docs, but reitveld isn't letting me publish them for some reason (it says the patch set doesn't exist). The comments are: the method docs should probably say ``False`` or ``0`` (the default) (and all the

[issue21338] Silent mode for compileall

2014-08-22 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- assignee: - berker.peksag nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21338 ___

[issue21338] Silent mode for compileall

2014-05-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21338 ___ ___

[issue21338] Silent mode for compileall

2014-04-25 Thread Éric Araujo
Éric Araujo added the comment: Patch looks to me comprehensive and backward-compatible. Thanks Thomas! -- nosy: +eric.araujo stage: needs patch - commit review type: - enhancement ___ Python tracker rep...@bugs.python.org

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
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

[issue21338] Silent mode for compileall

2014-04-23 Thread Ezio Melotti
Ezio Melotti added the comment: This seems a reasonable request. Do you want to propose a patch? -- keywords: +easy nosy: +ezio.melotti stage: - needs patch type: - enhancement versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: Patch attached. This works by making the -q flag countable, so you pass -qq to suppress all output. In the Python API, the quiet parameter has become an integer, so passing 2 is equivalent to -qq. This should be fully backwards compatible with passing True

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Changes by Thomas Kluyver tak...@gmail.com: Removed file: http://bugs.python.org/file35012/compileall_silent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21338 ___

[issue21338] Silent mode for compileall

2014-04-23 Thread Steven D'Aprano
Steven D'Aprano added the comment: Can't you just re-direct stdout or stderr? I'm sure that works even on Windows. E.g. py -${PY_QUALIFIER} -m compileall -q $INSTDIR\pkgs 2 null Is there a reason you cannot do this? I think that adding functionality to compileall to duplicate what your OS

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: Sorry, I somehow attached an old version of the patch. This one should be correct. Steven: Redirection relies on a shell - the native 'run a process' interface that the installer uses can't do that. There are ways to work around this, but I think this

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Changes by Thomas Kluyver tak...@gmail.com: Removed file: http://bugs.python.org/file35013/compileall_silent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21338 ___

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: Gah, still wrong. Trying again. -- Added file: http://bugs.python.org/file35014/compileall_silent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21338

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: In fact, I will probably end up working around this anyway, because I'll have to support versions of Python without this fix for some time. So I don't feel strongly that it needs to go in, but I will do any revisions or changes requested if people think it