473,795 Members | 3,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using eggs or py2exe to distribute apps

Hi,

I'm to the stage where I need to deploy the app I built with wxPython.
I've been able to successfully build it w/py2exe into a binary (about
10MB size in total).

What I'd like to do is create an automatic updater, so that I can have
users download updated versions of my *application code* without having
to have them redownload everything (the interpreter, etc) via a complete
redownload (I want to package some things as "components ").

Eggs seem like an ideal solution, but I haven't had any luck using them
in conjunction with py2exe.

It would seem that the most effective solution would be to package a
python interpreter (with wxPython, etc already included) into the
distributed app's directory and not use py2exe at all; however, since
everything would be included in the distribution, it would seem that the
full python distro would be huge (50MB at least), which defeats the
purpose of wanting to build the app into "components ".

Worst-case scenario would be to have them redownload the 10MB update
each time, but that's less than ideal, since the audience for my program
would have more frequent/less substantial updates over time, rather than
big updates all at once.

Any guidance or suggestions are very much appreciated.

Marcus
Jul 20 '07 #1
2 2410
Hey,

Use pyInstaller ;)

http://pyinstaller.hpcf.upr.edu/cgi-bin/trac.cgi

Easier to use in comparison to py2exe ... very good tool - try it!

Bye,

Matthias
Jul 20 '07 #2
On Jul 20, 5:39 am, Marcus <mcshutter...@d wx.comwrote:
Hi,

I'm to the stage where I need to deploy the app I built with wxPython.
I've been able to successfully build it w/py2exe into a binary (about
10MB size in total).

What I'd like to do is create an automatic updater, so that I can have
users download updated versions of my *application code* without having
to have them redownload everything (the interpreter, etc) via a complete
redownload (I want to package some things as "components ").

Eggs seem like an ideal solution, but I haven't had any luck using them
in conjunction with py2exe.
It should be possible. exclude your application code from being
packaged, copy an egg file to your disribution directory and add it to
sys.path.

It would seem that the most effective solution would be to package a
python interpreter (with wxPython, etc already included) into the
distributed app's directory and not use py2exe at all; however, since
everything would be included in the distribution, it would seem that the
full python distro would be huge (50MB at least), which defeats the
purpose of wanting to build the app into "components ".

Worst-case scenario would be to have them redownload the 10MB update
each time, but that's less than ideal, since the audience for my program
would have more frequent/less substantial updates over time, rather than
big updates all at once.

Any guidance or suggestions are very much appreciated.
You can try bbfreeze from http://cheeseshop.python.org/pypi/bbfreeze/
(of which I'm the author). It has support for egg files. If you
package your application code as an egg, it will by default copy your
whole egg (either as a directory or zipped) to the distribution
folder.

>
Marcus

Jul 20 '07 #3

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

Similar topics

6
2127
by: Brad Clements | last post by:
Now that Thomas is back from vacation ;-) I cannot get the example service to work using Python 2.3 and the latest released py2exe (or the cvs version) on Win2k SP3. I can run the sample service .py file ok, but once it's inside a py2exe generated exe.. no working. The error in the event log is: The description for Event ID ( 240 ) in Source ( MyService ) cannot be found. The local computer may not have the necessary registry...
2
3541
by: Marc Ederis | last post by:
Hello, I'm trying to create an executable with py2exe, and it uses the odbc module. The script runs fine until I use py2exe on it and run the ..exe. Then I get: -- Traceback (most recent call last): File "dbmod.py", line 2, in ? File "odbc.pyo", line 9, in ?
0
1195
by: upward_spiral2001 | last post by:
Hi. I've got a neat artificial intelligence project I want to distribute as an EXE. I'm using Python, Pygame, and Numeric. My problem is: When I use py2exe, I'm told "The following modules appear to be missing: AppKit, Foundation, dotblas, objc." And then my EXE crashes with a "segmentation fault." I tried the command: python setup.py py2exe --ignores It then compiles w/o complaint, but the EXE still crashes. The setup.py is very...
0
1252
by: kschnee | last post by:
Hi. I've got a neat artificial intelligence project I want to distribute as an EXE. I'm using Python, Pygame, and Numeric. My problem is: When I use py2exe, I'm told "The following modules appear to be missing: AppKit, Foundation, dotblas, objc." And then my EXE crashes with a "segmentation fault." I tried the command: python setup.py py2exe --ignores It then compiles w/o complaint, but the EXE still crashes. The setup.py is very...
4
5508
by: Simon Dahlbacka | last post by:
I'm "exefying" an application that uses wxpython, some com to control excel and word and want to distribute this application. after creating the executable with py2exe, it still works fine (at least on my development machine), however, if I create an installer package with innosetup, install it and try to run it, I get a busy cursor for a split second and then.. nothing. no errors no traceback no nothing.. viewing dependencies does not...
1
1373
by: Dave Guenthner | last post by:
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...
17
2269
by: Harry George | last post by:
....at least around here. I run a corporate Open Source Software Toolkit, which makes hundreds of libraries and apps available to thousands of technical employees. The rules are that a) a very few authorized downloaders obtain tarballs and put them in a depot and b) other users get tarballs from the depot and build from source. Historically, python packages played well in this context. Install was a simple download, untar, setup.py...
5
6546
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...
4
3384
by: Alia Khouri | last post by:
Can we open up the discussion here about how to improve setuptools which has become the de facto standard for distributing / installing python software. I've been playing around with ruby's gems which seems to be more more mature and usable. From my perspective, the relative immaturity of setuptools and its simultaneous widespread use is a clear python weakness and can make python less easy to absorb than it should be. A few...
0
9673
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
9522
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,...
1
10167
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,...
0
9046
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5440
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
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
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
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
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.