473,397 Members | 2,056 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,397 software developers and data experts.

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 2393
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...@dwx.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
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...
2
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...
0
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...
0
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...
4
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...
1
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. ...
17
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...
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...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
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.