[Scons-dev] Subprocess issue on Linux?

Leskinen, Eugene eugene.leskinen at intel.com
Sun Apr 6 09:05:04 EDT 2014


Hi Dirk,

I am Eugene Leskinen and I am the stubprocess.py module author.
How do you import it?

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

Hi Jason,

On 05.04.2014 00:17, Kenny, Jason L wrote:
I think yes, in that it does what should be done by the system under posix_spawn.. ie call vfork and execve.

Here is the last version of the monkey patch I have from the people working on it. It has a fallback to the classic fork exec if the API's don't exists. It seems to solve the main speed problem for us at the moment. I believe it still being tested to find possible issues.


I tried to let SCons run with this patch, but I'm not able to integrate the patching of subprocess.Popen() successfully. I always get an import error for SCons.Util, and fail to see where this is actually coming from:

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o d1_0/f00000_sconsbld_d1_0.o -c -Id1_0/lup000_sconsbld_d1_0 -Id1_0/lup001_sconsbld_d1_0 d1_0/f00000_sconsbld_d1_0.c
Traceback (most recent call last):
File "/home/dirk/workspace/scons_dirkbaechle/src/engine/SCons/Platform/posix.py", line 42, in <module>
import SCons.Util
ImportError: No module named SCons.Util
scons: *** [d1_0/f00000_sconsbld_d1_0.o] Error 1
scons: building terminated because of errors.

Does anybody have a clue and can give me a pointer? I'd like to compare the times for a clean build against the default sources.

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/20140406/9f0ab2b8/attachment.htm>


More information about the Scons-dev mailing list