[Distutils] .exe for script in Windows doesn't work

cool-RR cool-rr at cool-rr.com
Mon Feb 14 17:49:34 CET 2011


On Mon, Feb 14, 2011 at 5:32 PM, P.J. Eby <pje at telecommunity.com> wrote:

> At 03:47 PM 2/14/2011 +0200, cool-RR wrote:
>
>> On Fri, Jan 14, 2011 at 3:01 AM, P.J. Eby <<mailto:pje at telecommunity.com>
>> pje at telecommunity.com> wrote:
>> At 10:45 PM 1/13/2011 +0100, Martin v. Löwis wrote:
>> How is that generated (i.e. what piece of code specifically generates it)?
>>
>>
>> See setuptools.command.install_scripts.run() - it makes .exe and -<
>> http://script.py/-script.pyw>script.py/-script.pyw 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.
>>
>>
>>
>> P.J., do you think it will suffice to patch Distribute here:
>>
>> <
>> 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
>>
>>
>> To detect bdist_msi as well?
>>
>
> No.  If it were that simple, I'd already have done it.
>

So... Should I open a ticket on the Distribute project?


Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20110214/cbd9f34e/attachment-0001.html>


More information about the Distutils-SIG mailing list