473,804 Members | 3,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1374
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
7091
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 _tkinter.pyd seems to expect them in the same directory (Question 1) Is there a configration or path setting in py2exe/distutils I
2
2686
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 to Load_Module() in py2exe's start.c. However problem I have is that I can't build Py2Exe using the instructions provided. Using the designated command of "python setup.py install" I get this error: Traceback (most recent call last): File...
0
1002
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 does seem to be a popen.exe combined with py2exe... Ah... maybe that's not being included in the package!?
5
6547
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 laptop as well. I've found this so far that seems to be identical to what I'm seeing (for non-python programs): http://www.thescripts.com/forum/thread611031.html When I attempt to run, I get "The procedure entry point _except_handler4_common could...
0
9710
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9589
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10593
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10329
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7626
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.