#4 Dealing with bytecode only modules


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
Revision of build_exe.py is 1.18.


  • Shinji Suzuki

    Shinji Suzuki - 2004-01-26

    Deal with byte-code only modules.

  • Shinji Suzuki

    Shinji Suzuki - 2004-01-26

    Logged In: YES

    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.

  • Thomas Heller

    Thomas Heller - 2004-02-20

    Logged In: YES

    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.

  • Nobody/Anonymous

    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

  • Thomas Heller

    Thomas Heller - 2004-02-26
    • status: open --> closed
  • Thomas Heller

    Thomas Heller - 2004-02-26

    Logged In: YES

    Ok, I'll close this report and won't include your patch into

    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 ;-).


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks