[Distutils] How can I silence setuptools/distutils output in a custom command?
pje at telecommunity.com
Thu Apr 29 23:21:28 CEST 2010
At 01:58 PM 4/29/2010 -0500, Jason Baker wrote:
>On Thu, Apr 29, 2010 at 1:27 PM, P.J. Eby
><<mailto:pje at telecommunity.com>pje at telecommunity.com> wrote:
>At 01:05 PM 4/29/2010 -0500, Jason Baker wrote:
>I've written a simple setuptools command that will read options from
>a setup.cfg. The code is here:
>I'd like to be able to use the output of this command to pass to
>other programs, but that is a bit difficult when distutils is
>writing "running rdopts" out every time I use it. The solution I
>found is to just call distutils.log.set_threshold(ERROR) at import
>time, but that just feels like a recipe for something to go
>wrong. Are there any better ways to do this?
>python setup.py -q rdopts
>Ah, I see. I was doing "python setup.py rdopts -q". Is there any
>way to make -q enabled by default?
Apart from using the alias command (or other config file settings), I
don't know of any.
More information about the Distutils-SIG