[Distutils] Can we prevent setuptools from writing to stdout

Phillip J. Eby pje at telecommunity.com
Wed Sep 24 19:39:01 CEST 2008

At 02:24 PM 9/24/2008 +0100, Fadhley Salim wrote:
>Is it possible to prevent setuptools from writing anything to stdout?
>For various inconvenient reasons our package must install silently - 
>that means the installation process must not write to either stdout 
>or stderr. Other than hacking distutils / setuptools to ensure that 
>there's nothing which can write i've not yet been able to come up 
>with a reliable means to control output.

Temporarily replace sys.stdout with another object, such as a StringIO. 

More information about the Distutils-SIG mailing list