Here is a patch to py2exe with which byte-code only
modules without source can be included in the
generated exe. [Without this, py2exe generates
RuntimeError("Don't know how to handle '<fname>'").]
Tested only briefly with a wxWindows application at
hand.
Revision of build_exe.py is 1.18.
Deal with byte-code only modules.
Logged In: YES
user_id=960116
Sorry CVS revison number is not 1.18. Just the latest in the
log header is. It should be somewhere around 1.47 as I've
fetched an installer package DEC. of the last year.
Logged In: YES
user_id=11105
Shinji - why do you want to do this? Why can't you use the
source *.py module?
I'm not really convinced this patch is too useful - and
since it also needs changes to modulefinder, which is a core
Python module, I am at least doubtful whether the patch is
accepted or not.
Logged In: NO
Hello Thomas,
I developed the modification to comply with LGPL requirement
under unfortunate circumstance where my sources must be
closed. LGPL requires that users must be able to rebuild the
executable. I posted the patch in hope it would help someone
in the same situation. I understand your concern and whether
it is incorporated in py2exe is not that critical to me.
Anyway let me utilize this opportunity to thank for your
impressive work. It saved clients of my client the trouble of
installing Python, ZopePageTemplates, Japanese, wxWindows,
wxPython and my time documenting and supporting the
installation.
Logged In: YES
user_id=11105
Ok, I'll close this report and won't include your patch into
py2exe.
If you want the patch to be most useful to other people
having the same problem, you could post a pointer to it into
the py2exe wiki, or, if that's possible, show how this
functionality can be used in a py2exe setup script by some
clever subclassing of the py2exe classes and ModuleFinder ;-).