<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 12 August 2013 16:35, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">> Hm, here's a side thought: what if PyLauncher added the ability to<br>

> serve as a script wrapper, just like setuptools' existing wrappers?<br>
> Then setuptools could just copy py.exe or pyw.exe alongside a .pyl or<br>
> .pyw, and presto!  No PATHEXT compatibility needed, but users could<br>
> still opt out of using the .exe wrappers if they're sure their shell<br>
> works right without it.<br>
><br>
> (The wrapper facility would be implemented by simply checking for an<br>
> adjacent file of matching filename and extension (.pyl for py.exe,<br>
> .pyw for pyw.exe), and if found, insert that filename as argv[1]<br>
> before proceeding with the normal launch process.  For efficiency, the<br>
> file check could be skipped if the executable has its original name,<br>
> at the minor cost of it not being possible to name a console script<br>
> 'py' or a windows app 'pyw'.  But that's an optional tweak.)<br>
<br>
</div>This sounds like a plausible approach, especially if we add the<br>
bootstrapping being considered for 3.4+ to PyLauncher for earlier<br>
versions. (Donald has a draft PEP for that, he's just making a few<br>
tweaks before publishing it for broader comment)<br></blockquote></div><br><br></div><div class="gmail_extra">Do you want the time machine keys back? :-)</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://bugs.python.org/issue18491">http://bugs.python.org/issue18491</a><br>
</div><div class="gmail_extra">Committed by Vinay in <a href="http://hg.python.org/cpython/rev/4123e002a1af" style="font-size:12px;line-height:17.8125px;white-space:pre-wrap;color:rgb(85,26,139);text-decoration:none">http://hg.python.org/cpython/rev/4123e002a1af</a></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">The wrapper source can be built that way if SCRIPT_WRAPPER is defined, but the build infrastructure does not currently define that. See the patch and issue log for details.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Paul</div></div>