Differences between revisions 1 and 8 (spanning 7 versions)
Revision 1 as of 2004-01-12 10:12:50
Size: 771
Editor: cache1-1-ffm-vpn
Comment:
Revision 8 as of 2008-07-08 11:27:44
Size: 1188
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= The Problem = = Where to correct =
Line 6: Line 6:
{{{
#!python
Line 21: Line 22:
}}}
= what to do =
Line 24: Line 27:
{{{
#!python
Line 25: Line 30:
}}}
Line 28: Line 34:
{{{
#!python
Line 29: Line 37:
}}}
Line 31: Line 40:
I stumbled upon while trying to include win32com.client - that module was not able to find gen_py/__init__.py = additional information =

I stumbled upon while trying to include win32com.client - that module was not able to find {{{gen_py/__init__.py}}}

20040112 HAM
Line 35: Line 48:
= the cause =
Line 36: Line 50:
This problem is a limitation of the current win32all (build 163, currently).
Line 37: Line 52:
Py2Exe itself does not require that the zipfile has a {{{.zip}}} extension (and this can be useful to obscure the contents of this file).
Line 38: Line 54:
I've sent Mark Hammond a patch ;-)
Line 39: Line 56:
-- Thomas Heller

Where to correct

Within site-packages/py2exe/samples/extending/setup.py

(line 54 ff..)

   1 ################################################################
   2 # arguments for the setup() call
   3 
   4 test_wx = dict(
   5     script = "test_wx.py",
   6     other_resources = [(RT_MANIFEST, 1, manifest_template % dict(prog="test_wx"))],
   7     dest_base = r"prog\test_wx")
   8 
   9 zipfile = r"lib\shardlib"
  10 
  11 options = {"py2exe": {"compressed": 1,
  12                       "optimize": 2}}
  13 
  14 ################################################################

what to do

The Error is within

   1 zipfile = r"lib\shardlib"

it has to be

   1 zipfile = r"lib\shardlib.zip"

additional information

I stumbled upon while trying to include win32com.client - that module was not able to find gen_py/__init__.py

20040112 HAM

the cause

This problem is a limitation of the current win32all (build 163, currently).

Py2Exe itself does not require that the zipfile has a .zip extension (and this can be useful to obscure the contents of this file).

I've sent Mark Hammond a patch ;-)

-- Thomas Heller

ExtendingExample (last edited 2008-07-08 11:27:44 by localhost)