Using McMillan Inc Installer with Python 2.0

Rodrigo Senra rodsenra at correionet.com.br
Tue Nov 21 07:51:15 EST 2000


Hi folks,
I need some advice regading Gordon's Installer. Here is the deal:
I have a very small app (that imports os, sys and Tkinter), and I'm
trying to isolate its dependencies to create a installation. I've been
through
several postings and I know the options. Among all I decided to give a
try
to McMillan's.

My environment:
  Win98SE 4.10.2222A  Python 2.0(python.org) Tcl/Tk 8.3.2

Freezing a dummy script works with this
.cfg:---------------------------------------
[MYSINGLEFILE]
name= bla.exe
type= FULLEXE
userunw = 0
zlib= MYZLIB
misc =
script= bla.py
debug = 1

[MYZLIB]
type = PYZ
name= bla.pyz
dependencies= bla.py
excludes= dospath, posixpath, macpath
includes=
------------------------------------------------------------------------------------

Running Simple.py generates a .cfg that fails at a later
built:--------------
[MYINSTALL]
type= INSTALL
name= Install_bla.exe
bindepends= bla.py
zlib = INSTALLZLIB
misc= MYSTANDALONE
debug = 1
excludes = PyWinTypes15.dll, win32api

# !!!! Shouldn't this -^ be PyWinTypes20.dll, I KNOW it is in the
exclude
# section and probably has nothing to do with my problem but...seems
odd  :o)

[MYSTANDALONE]
type= STANDALONE
name= bla.exe
script= bla.py
zlib = APPZLIB
userunw = 0
support = 0
debug = 1

[APPZLIB]
name= bla.pyz
dependencies= bla.py
excludes= dospath, posixpath, macpath

[INSTALLZLIB]
name = installzlib.pyz
dependencies = installutils
includes = installutils
excludes = dospath, posixpath, macpath
--------------------
Building the script above fails with:

C:\temp>install_bla.exe
Start
Opening self
Unpacking binaries
 extracting zlib.pyd (1, b)
 extracting _sre.pyd (1, b)
 extracting PyWinTypes20.dll (1, b)
 extracting python20.dll (1, b)
 extracting python20.dll (1, b)
Getting entry points
Setting Python vars
Initializing Python
Manipulating Python's sys.path
Setting sys.argv
importing modules from CArchive
Installing import hooks
executing import imputil,
archive_rt;imputil.FuncImporter(archive_rt.ZlibArchive
(r'C:\TEMP\INSTALL_BLA.EXE', 401863).get_code).install()

Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named imputil
Running scripts
 extracting gen_install (2, s)
running gen_install
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named os
Finalizing Python
-------
My path is ...
PATH=c:\Progra~1\Tcl\Bin;d:\python20;d:\python20\dlls;H:\;C:\WINDOWS;C:\WINDOWS

COMMAND

And I do not have PYTHONPATH set.

I reaaly could use some clues, hints, tips ;o) here
TIA
rodsenra







More information about the Python-list mailing list