[Patches] [ python-Patches-409444 ] Redirect stdout in distutils.spawn

noreply@sourceforge.net noreply@sourceforge.net
Sat, 17 Mar 2001 12:36:27 -0800


Patches item #409444, was updated on 2001-03-17 12:36
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=409444&group_id=5470

Category: distutils
Group: None
Status: Open
Priority: 5
Submitted By: A.M. Kuchling (akuchling)
Assigned to: Greg Ward (gward)
Summary: Redirect stdout in distutils.spawn

Initial Comment:
The attached patch (yeah, right) modifies
distutils/spawn.py to add the ability 
to redirect standard output to a file, at least
on POSIX platforms.  This would be needed for Barry's 
patch to support shar as a Distutils output format.

Questions:
  * Is this a good idea?

  * Is the interface right?  Should it take a 
    file object instead of a filename?  (It therefore
    always uses 'wb' mode, which may be bad.)

  * Can someone contribute the required changes to 
    make this work on NT?



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=409444&group_id=5470