<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 24, 2016 at 7:08 PM, Duncan P. N. Exon Smith via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><br>
> On 2016-Feb-24, at 12:48, Renato Golin via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> On 24 February 2016 at 19:49, Sean Silva via llvm-dev<br>
> <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
>> Great! I'll circle around to this at some point. Despite the "obvious"<br>
>> nature of it I still am wary of underestimating the cruftiness of the<br>
>> buildbots, so I'll probably do it some time at night when the bots are<br>
>> mostly green so that I can easily see if any bots *are* broken by this.<br>
><br>
> While at it, can you call "env python2" in the shebang line? It makes<br>
> it a lot easier for Python3 systems, like Arch.<br>
<br>
</span>I don't think darwin installs anything with the name python2.<br>
</blockquote><div><br></div><div>It is possible to create a script that is both valid shell and Python that will e.g. invoke `which` to find the appropriate python binary and execute it. See <a href="https://hg.mozilla.org/mozilla-central/file/5e0140b6d118/mach">https://hg.mozilla.org/mozilla-central/file/5e0140b6d118/mach</a> for an example. With a little tweaking, you could have it search for multiple pythonX.Y binaries and pick the most appropriate one.<br></div></div></div></div>