py2exe and a single exe file?

Gerhard Häring gerhard.haering at gmx.de
Sat Sep 7 01:50:26 CEST 2002


Stephen Boulet wrote in comp.lang.python:
> I'm trying to get py2exe to work for me, and I must be doing something 
> wrong.
> 

> [...] It builds and runs, but only with the other stuff in the build
> directory with the generaged exe. The other stuff is:
> 
>    tcl directory containing tcl8.3 and tk8.3 directories
>    _numpy.pyd
>    _sre.pyd
>    _tkinter.pyd
>    multiarray.pyd
>    umath.pyd
> 
> What I would like to accomplish is just having a single exe file
> lumping everything together. Is this possible?

No. If you want to distribute the output of py2exe, use an installer
like NSIS or just zip it up.

Gordon McMillan's installer has means to do what you want, but it also
needs to unpack .pyd and .dll files at runtime, which it will delete
afterwards. So it basically cheats, which is logical, since you can't
statically link shared libraries, at least not on Windows.

-- Gerhard



More information about the Python-list mailing list