[Scons-dev] Subprocess issue on Linux?

Leskinen, Eugene eugene.leskinen at intel.com
Mon Apr 7 14:39:51 EDT 2014


Hi Dirk,

Please find latest version of stubprocess.py attached. This version has fixes which make it work under Python 2.6 and correctly handle situation when executable to run does not exist or has wrong permissions.

Hope you'll find it useful.

From: scons-dev-bounces at scons.org [mailto:scons-dev-bounces at scons.org] On Behalf Of Dirk Bachle
Sent: Sunday, April 06, 2014 6:02 PM
To: scons-dev at scons.org
Subject: Re: [Scons-dev] Subprocess issue on Linux?

Hi Eugene,

thanks a lot for your quick answer and very helpful advice.

On 06.04.2014 15:21, Leskinen, Eugene wrote:
I have just place the stubprocess.py to /opt/python27/lib/scons-2.1.0/SCons/Platform/ directory and added 'import stubprocess' statement to SCons.Platfrom.posix module just after import subprocess:
--- /opt/python27/lib/scons-2.1.0/SCons/Platform/posix.py 2014-04-06 17:17:30.000000000 +0400
+++ /opt/python27/lib/scons-2.1.0/SCons/Platform/posix.py.new 2014-04-06 17:17:07.000000000 +0400
@@ -36,6 +36,7 @@
import os
import os.path
import subprocess
+import stubprocess
import sys
import select

This what worked for me.

This approach works on my side too. I had tried to copy-paste part of the source code directly to the top of "SCons/Platform/posix.py", which gave me the reported errors.

Best regards,

Dirk

--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20140407/19630aa8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stubprocess.py
Type: application/octet-stream
Size: 11675 bytes
Desc: stubprocess.py
Url : <http://two.pairlist.net/pipermail/scons-dev/attachments/20140407/19630aa8/attachment-0001.obj>


More information about the Scons-dev mailing list