diff setup.py @ 59605:768722b2ae0a

* Replaces the internals of the subprocess module from fork through exec on POSIX systems with a C extension module. This is required in order for the subprocess module to be made thread safe. The pure python implementation is retained so that it can continue to be used if for some reason the _posixsubprocess extension module is not available. The unittest executes tests on both code paths to guarantee compatibility. * Moves PyLong_FromPid and PyLong_AsPid from posixmodule.c into longobject.h. Code reviewed by jeffrey.yasskin at http://codereview.appspot.com/223077/show
author Gregory P. Smith <greg@mad-scientist.com>
date Sun, 14 Mar 2010 06:49:55 +0000
parents 445f801ca2d0
children 37ad40a28d3b
line wrap: on
line diff
--- a/setup.py	Sun Mar 14 01:28:07 2010 +0000
+++ b/setup.py	Sun Mar 14 06:49:55 2010 +0000
@@ -546,6 +546,9 @@
         # CSV files
         exts.append( Extension('_csv', ['_csv.c']) )
 
+        # POSIX subprocess module helper.
+        exts.append( Extension('_posixsubprocess', ['_posixsubprocess.c']) )
+
         # socket(2)
         exts.append( Extension('_socket', ['socketmodule.c'],
                                depends = ['socketmodule.h']) )