[Distutils] [issue73] setup.py --name prints warning messages to stdout, rather than stderr

Tres Seaver tseaver at palladion.com
Sun May 31 22:40:51 CEST 2009

Hash: SHA1

Garrett Cooper wrote:
> On Fri, May 29, 2009 at 12:57 PM, Sridhar
> Ratnakumar<setuptools at bugs.python.org> wrote:
>> New submission from Sridhar Ratnakumar <sridharr at activestate.com>:
>> Warning messages must be printed to stderr. This allows for a programattic way
>> to find setup.py metadata.
>>> pwd
>> ../dap.plugins.sql-0.2.1
>>> apy setup.py  --name 2> /dev/null
>> 'dap.plugins' is declared as a package namespace, but 'dap' is not: please
>> correct this in setup.py
>> dap.plugins.sql
>>> echo $?
>> 0
>> ----------
>> messages: 295
>> nosy: srid
>> priority: bug
>> status: unread
>> title: setup.py --name prints warning messages to stdout, rather than stderr
>     It should be easy to filter / redirect critical, debug, error, and
> warning messages to sys.stderr if there's a common logger for
> setuptools...

This use case isn't logging:  the entire point of running the command
'setup.py --name' is to print that text.  IMHO it belongs on stdout,
rather than stnderr.  Switching it will break extant / deployed scripts.

Other information printed while executing some command could be logging,
and therefore a potential candidate for the logging module (which itself
has issues about spew to standard pipes).

- --
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the Distutils-SIG mailing list