473,396 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Py2exe Question - Deployment Advice

I wrote my first Python script today and was very impressed at how
concise the code was and development time. In addition, I am using
the latest stable version of Python from ActiveState.com. Anyway,
when I compiled my file to an exectuable I was horrified to see a
"dist" folder with all kinds of co-reqs etc that had to be distributed
in order for the program to run.

For Perl, I used the Perl2exe product and I was simply given one file
..exe to distribute. Has anyone one else run into this before /
experienced that. Is there a way to have just one file?

Enterprise Environment
All Windows desktop / servers w/out Python language installed

My Goal: Evaluating Python and in addition trying to keep potential
pitfalls as simple and concise as possible concerning deployment and
support.

Thanks in advance to all you guru's.

Dave
Jul 18 '05 #1
1 1359
Dave Guenthner wrote:
For Perl, I used the Perl2exe product and I was simply given one file
.exe to distribute. Has anyone one else run into this before /
experienced that. Is there a way to have just one file?


I believe the McMillan installer does that. (It actually "cheats"
and effectively unpacks itself into a temp directory every time
you run the program).

I actually just use InnoSetup to distribute my program. That also
takes care of things like putting icons in the menus and providing
an uninstall entry in the Control Panel, as well as upgrades.

The simple technical reason why there are multiple files is because
the Python implementors put the mandatory functionality into
the main dll, and have the seperate ones for optional functionality
such as regular expressions, sockets, CSV, XML etc.

Under the hood py2exe uses modulefinder. modulefinder finds every
module your program could potentially use. For example, if you
use URLs and the url library, that library references the SSL
library. modulefinder will include both, even though you may
never use an SSL based url.

If you know for certain that you don't use certain functionality,
then feel free to tell py2exe/modulefinder that you don't want
particular modules. However you need to be very certain :-)

Roger
Jul 18 '05 #2

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

Similar topics

5
by: Michael Peuser | last post by:
Hi, I should like to make a distribution (using Tkinter), with standard DLLs removed. pythonXX.dll is no problem. tcl und tk, which make the mass of mega bytes, cannot be removed because...
2
by: Kylotan | last post by:
I need to be able to build Py2Exe from the source code as I am making a Windows executable where I wish to preprocess the modules before importing them.It looks like I can do this by adding lines...
0
by: Kinsley Turner | last post by:
Hey, Does os.popen() actually work in a py2exe win32 package? As far as I can tell, it just doesn't seem to do anything, although it seems to work ok outside of py2exe. Any hints? There...
5
by: Michael | last post by:
I'm trying to build a exe on a vista system using py2exe. It will deploy to vista and XP systems. If it matters, the application uses pyserial, as well. I have VS Studio 2005 installed on this...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.