<div dir="ltr"><div class="gmail_quote">On Fri, Jan 14, 2011 at 3:01 AM, P.J. Eby <span dir="ltr"><<a href="mailto:pje@telecommunity.com">pje@telecommunity.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">At 10:45 PM 1/13/2011 +0100, Martin v. Löwis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How is that generated (i.e. what piece of code specifically generates it)?<br>
</blockquote>
<br></div>
See setuptools.command.install_scripts.run() - it makes .exe and -<a href="http://script.py/-script.pyw" target="_blank">script.py/-script.pyw</a> files. It has some hackery to detect bdist_wininst and use a relative #! line in that case, but it doesn't have equivalent hackery for bdist_msi.<br>
<br>
</blockquote></div><br>P.J., do you think it will suffice to patch Distribute here:<div><br></div><div><a href="https://bitbucket.org/tarek/distribute/src/4ab9b96dc540/setuptools/command/install_scripts.py#cl-34">https://bitbucket.org/tarek/distribute/src/4ab9b96dc540/setuptools/command/install_scripts.py#cl-34</a></div>
<div><br></div><div><a href="https://bitbucket.org/tarek/distribute/src/4ab9b96dc540/setuptools/command/install_scripts.py#cl-34"></a>To detect bdist_msi as well?</div><div><br></div><div><br></div><div>Ram.<br>
</div></div>