[Scons-users] Trying to use Execute()

Leandro Moreno leandro.moreno at tallertechnologies.com
Fri Nov 22 09:42:39 EST 2013


On Fri, Nov 22, 2013 at 11:30 AM, Tom Tanner (BLOOMBERG/ LONDON) <
ttanner2 at bloomberg.net> wrote:


> Can't you try using env['PSPAWN'] - there's a builder which does that (I

> forget which though).

>

> Yes, my first implementation was with SPAWN, but, I was asked to implement

in other way.


>

> ----- Original Message -----

> From: scons-users at scons.org

> To: scons-users at scons.org

> At: Nov 22 2013 14:14:37

>

>

>

>

> 2013/11/21 William Deegan <bill at baddogconsulting.com>

>

>>

>> On Nov 21, 2013, at 12:22 PM, Leandro Moreno <

>> leandro.moreno at tallertechnologies.com> wrote:

>>

>> > Hello again SCons guys!

>> >

>> > This time, I have an inconvenient trying to use the function Execute()

>> from SCons.

>> > I have a builder to check the name's convention. But the tool that do

>> the job, check the dependencies errors too. And I want to filter those

>> errors. So, to do this I use subprocess.Popen(), and I take the stderr.

>> > Now, I want to use The Execute(), but the problem here is that I don't

>> know how to take the output to manipulate It. Is there a way to do this?

>>

>> Redirect the output to a file, add the file to the list of outputs in the

>> builder's emitter.

>> Create another builder to process that file.

>>

>>

> That's really inconvenient.

> Couldn't we subclass Execute an make it return a stderr or stdout object?

> Is there interest in something along this lines?

>

>

>> -Bill

>> _______________________________________________

>> Scons-users mailing list

>> Scons-users at scons.org

>> http://four.pairlist.net/mailman/listinfo/scons-users

>>

>

>

>

> --

> <http://www.tallertechnologies.com>

> Matías Iturburu

> Software Engineer

>

>

>

>

> *San Lorenzo 47, 3rd Floor, Office 5 Córdoba, Argentina *

>

> *Phone: +54 351 4217888 / +54 351 4218211 Skype: matias.iturburu*

>

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>



--
<http://www.tallertechnologies.com>
Leandro Moreno
Intern Engineer

San Lorenzo 47, 3rd Floor, Office 5
Córdoba, Argentina

Phone: +54 351 4217888 / +54 351 4218211
Skype: letossgm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131122/c24b3f5f/attachment.htm


More information about the Scons-users mailing list