Mcmillan Installer without python.dll ?
mpeuser at web.de
Sat Aug 23 22:56:16 CEST 2003
I am still trying to deploy a python program as a single exe file. There are
some possibilities if you want to include tkxx.dll, tclxx.dll and
pythonxx.dll. If not it tirens out to be more difficult. I was without luck
using py2exe (I posted here some days ago).
Using Mcmillan's Installer is a step forward. The tool is straightforward to
use and has sufficient documentation (and a lot of options).
as well as used
to get rid of pythonxx.dll and Tcl/Tk in the exe file. This reduced size
from 1,4 MB to 900 k when removing tcl/tk and the exe worked still fine.
Removing pythonxx.dll reduced it to 300k which was what I intended. However
now funny errors occur when starting the exe:
Traceback (most recent call last):
File "<string>", line 5, in ?
File "C:\Python\Downloads\Installer\iu.py", line 277, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "C:\Python\Downloads\Installer\iu.py", line 347, in doimport
mod = director.getmod(nm)
File "C:\Python\Downloads\Installer\iu.py", line 184, in getmod
mod = owner.getmod(nm)
File "C:\Python\Downloads\Installer\archive.py", line 358, in getmod
raise ImportError, "PYZ entry '%s' (%s) is not a valid code object" %
ImportError: PYZ entry 'psyco' (0j) is not a valid code object
(psyco was by chance the first imported modul.)
More information about the Python-list