473,473 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Tinkering with py2exe

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
Jul 18 '05 #1
1 2284

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.

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
1
by: | last post by:
I want a binnary file to my aplicattion, but py2exe don't match the xmll.sax module. the py2exe shows this errors: warning: py2exe:...
2
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any...
0
by: Kathleen Kudzma | last post by:
I'm having a problem with py2exe for Python 2.3. I got fixed the Lookuperror no codec search functions registered: can't find encoding by following the instructions on the py2exe page (added...
8
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
0
by: Steven Bell | last post by:
I am trying to build an executable from a python script. Using python 2.3, SOAPpy 0.10.3, Py2exe 0.4.2. Build command: python setup.py py2exe -w --includes xml.sax.drivers2.drv_py I get the...
6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
0
by: Larry Bates | last post by:
Jimmy Retzlaff wrote: Everyone, Thanks for all your hard work on py2exe, it is greatly appreciated. -Larry Bates
0
by: Jimmy Retzlaff | last post by:
py2exe 0.6.9 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.