[Scons-dev] Subprocess.popen() on win32?
Bill Deegan
bill at baddogconsulting.com
Fri Oct 5 13:43:39 EDT 2018
Jason,
Any limitations with doing this over the current code?
Could you craft a pull request for this?
-Bill
On Fri, Oct 5, 2018 at 10:37 AM Jason Kenny <dragon512 at live.com> wrote:
> Been using popen with parts via overriding SPAWN var since the start.
>
> +1 on having this be the default
>
> Jason
>
> Get Outlook for Android <https://aka.ms/ghei36>
>
> ------------------------------
> *From:* Scons-dev <scons-dev-bounces at scons.org> on behalf of Bill Deegan <
> bill at baddogconsulting.com>
> *Sent:* Friday, October 5, 2018 10:32:50 AM
> *To:* SCons developer list
> *Subject:* Re: [Scons-dev] Subprocess.popen() on win32?
>
> Come now.
> Win32.py's spawn implementation was updated in 2012.. ;)
>
> If we universally switch to subprocess.Popen(), then we can safely chdir
> for non python function actions.
> But passing in the cwd argument.
>
> That seems likely to be useful..
>
> -Bill
>
>
> On Fri, Oct 5, 2018 at 10:28 AM Russel Winder <russel at winder.org.uk>
> wrote:
>
>> I shall be flippant in the hope of being humorous, yet with an element of
>> possible truth:
>>
>> Perhaps no-one has bothered to update that bit of code in the last decade
>> and
>> a half?
>>
>>
>> Did you mean subprocess.Popen? Worth noting that the API for subprocess
>> changes from call* in earlier versions to run in later. Somewhat annoying
>> for
>> compatibility across many Python versions.
>>
>>
>> On Fri, 2018-10-05 at 10:17 -0700, Bill Deegan wrote:
>> > Greetings,
>> >
>> > Any reason we're not using subprocess.popen() on win32?
>> > We're still using os.spawnve() which is known to have some threading
>> issues.
>> > https://bugs.python.org/issue6476
>> <https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.python.org%2Fissue6476&data=02%7C01%7C%7C2ddb85c900724ee6a19d08d62ae89ce0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636743575876087205&sdata=6DYlqZyLYzW9cUS2lCdTze3k41YTSNRLrtQA%2Fje1X8Y%3D&reserved=0>
>> >
>> > -Bill
>> > _______________________________________________
>> > Scons-dev mailing list
>> > Scons-dev at scons.org
>> > https://pairlist2.pair.net/mailman/listinfo/scons-dev
>> <https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpairlist2.pair.net%2Fmailman%2Flistinfo%2Fscons-dev&data=02%7C01%7C%7C2ddb85c900724ee6a19d08d62ae89ce0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636743575876087205&sdata=2A0pZIv2zZMH6rw19nOwDAetJgMmGhs85WvEWwcx1Sc%3D&reserved=0>
>> --
>> Russel.
>> ===========================================
>> Dr Russel Winder t: +44 20 7585 2200
>> 41 Buckmaster Road m: +44 7770 465 077
>> London SW11 1EN, UK w: www.russel.org.uk
>> <https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.russel.org.uk&data=02%7C01%7C%7C2ddb85c900724ee6a19d08d62ae89ce0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636743575876087205&sdata=CQ8ILzxRnVD6Ai6jfJpKs62gFlHwbI7d25lNoZIsYrA%3D&reserved=0>
>>
>> _______________________________________________
>> Scons-dev mailing list
>> Scons-dev at scons.org
>> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>> <https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpairlist2.pair.net%2Fmailman%2Flistinfo%2Fscons-dev&data=02%7C01%7C%7C2ddb85c900724ee6a19d08d62ae89ce0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636743575876087205&sdata=2A0pZIv2zZMH6rw19nOwDAetJgMmGhs85WvEWwcx1Sc%3D&reserved=0>
>>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20181005/db8af2a9/attachment.html>
More information about the Scons-dev
mailing list