Tinkering with py2exe

Discussion in 'Python' started by Ishwor, Dec 25, 2004.

  1. Ishwor

    Ishwor Guest

    Having coded 1.72kb python test file, i decided to convert it to .exe
    file using py2exe.
    Having succeded doing it, i found the need to distribute the whole
    directory including these files ?!!!???
    26/12/2004 09:16 AM 203,096 library.zip
    26/11/2004 09:16 AM 1,867,776 python24.dll
    26/12/2004 09:16 AM 11,264 simpletable.exe
    26/11/2004 09:16 AM 4,608 w9xpopen.exe
    4 File(s) 2,086,744 bytes

    i assume w9xpopen.exe does the work around to run the code in windows.
    python24.dll (which is massive 1.78mb!!)- has the Python VM i guess.
    what does the library.zip do??

    Currently to convert such a small script to exe why the nuances of 1.98mb??
    Thanks
    --
    cheers,
    Ishwor Gurung
     
    Ishwor, Dec 25, 2004
    #1
    1. Advertising

  2. Ishwor

    John Machin Guest

    Ishwor wrote:
    > Having coded 1.72kb python test file, i decided to convert it to .exe
    > file using py2exe.
    > Having succeded doing it, i found the need to distribute the whole
    > directory including these files ?!!!???
    > 26/12/2004 09:16 AM 203,096 library.zip
    > 26/11/2004 09:16 AM 1,867,776 python24.dll
    > 26/12/2004 09:16 AM 11,264 simpletable.exe
    > 26/11/2004 09:16 AM 4,608 w9xpopen.exe
    > 4 File(s) 2,086,744 bytes
    >
    > i assume w9xpopen.exe does the work around to run the code in

    windows.

    No, it is required to make the popen* functions work correctly on "w9x"
    platforms (Windows 95, 98, & ME).

    > python24.dll (which is massive 1.78mb!!)- has the Python VM i guess.
    > what does the library.zip do??


    (1) Aren't you curious enough to try peeking into it with WinZip or
    similar?

    (2) Perhaps you should have read all the way through the py2exe home
    page:

    """
    How does it work?
    py2exe uses python's modulefinder to examine your script and find all
    python and extension modules needed to run it. Pure python modules are
    compiled into .pyc or .pyo files in a temporary directory. Compiled
    extension modules (.pyd) are also found and parsed for binary
    dependencies.

    A zip-compatible archive is built, containing all python files from
    this directory. Your main script is inserted as a resource into a
    custom embedded python interpreter supplied with py2exe, and the
    zip-archive is installed as the only item on sys.path.
    """

    >
    > Currently to convert such a small script to exe why the nuances of

    1.98mb??

    It's not compiling and linking, as with (say) C. It's packaging,
    providing the minimum (more or less) bundle of resources that you can
    distribute to users who want/need to run your script but
    can't/don't/shouldn't have a full Python distribution. The overhead of
    the pythonXY.dll etc can be spread over multiple scripts.
     
    John Machin, Dec 26, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. D. Shane Fowlkes

    just tinkering with a Sub Routine in ASP.NET

    D. Shane Fowlkes, Nov 12, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    437
    Scott M.
    Nov 13, 2003
  2. F. GEIGER
    Replies:
    0
    Views:
    918
    F. GEIGER
    Aug 16, 2004
  3. python
    Replies:
    3
    Views:
    1,801
    Simon Brunning
    May 22, 2006
  4. Chris Spencer

    Re: [Py2exe-users] py2exe 0.6.9 released

    Chris Spencer, Nov 17, 2008, in forum: Python
    Replies:
    3
    Views:
    573
    Pascal
    Dec 8, 2008
  5. Mark Hammond

    RE: [Py2exe-users] py2exe 0.6.9 released

    Mark Hammond, Nov 17, 2008, in forum: Python
    Replies:
    0
    Views:
    459
    Mark Hammond
    Nov 17, 2008
Loading...

Share This Page