On 8/27/10 9:31 AM, Jamie Adams wrote: > On Aug 27, 2010, at 9:34 AM, Paul McNett wrote: > >>> That's cool, but it requires the sqlite client to be installed, and I'm >>> running this >>> creation code from within my python program distributed with py2exe, >>> py2app, and >>> cxFreeze. >> > > Paul, this is something I would like to know more about. Are there any > specific pitfalls or extra steps you have to go through to package a > Dabo app using these tools, as opposed to packaging a generic Python > app?
It was trial and error, trial and error, and it consumed many many hours just to get it working on Windows. Then it was many many hours getting it working on Mac. Cx_freeze on Linux took some configuration but either because I was able to reuse much of the setup from Win and Mac or because cx_freeze works better, it was easier. Perhaps cx_freeze on all platforms is the best answer, but I wasn't about to start from scratch given all the hours I'd already put in. > I know Dabo is all Python, but I remember when I was looking in to > this issue previously, including extra libraries in py2exe seemed to be > problematic. It looks like cxFreeze would help with that, but I have > only read the description on their web site. As you appear to have > walked this road already, I thought I would try and tap your knowledge. > > I am still working through the basics of Dabo, but every chance I get to > play with it, I'm bombarded with cool projects I would like to try and > build, which leads me to think about trying to package them in a format > that's easy to consume for folks that don't already have all the > dependencies installed. I think it is a good way to distribute apps. The only real downside is the file size. I'm seeing 14MB file on Windows, 12MB on Linux, and 24MB on Mac, or thereabouts. > By the way, Paul and Ed, it's been a pleasure working through the PyCon > Tutorial. It's quite well done. The explanation of 3-Tier design and > all the care that has gone in to the design of Dabo was quite > fascinating, not to mention the obvious coolness of Dabo itself. Always awesome to hear things like this. Thanks! > If you wanted to put together a tutorial or screencast about packaging > Dabo apps, I would hang on your every word. I know you're busy, just > wanted you to know if you were inclined to put something together, you > would have a grateful audience. I think it would be a tutorial, and it is something I have planned for the Pycon tutorial that you are working through now. But realistically it'll probably be quite some time before I write it. > If I can figure it out myself, maybe I'll put something together. I'd > love to contribute something back. If you run AppWizard, you get for free a setup.py that is py2exe and py2app enabled. IOW, you can distribute your AppWizard app to Windows and Mac. You could use these generated files as a starting point for your own work. Someday I'll get around to adding the cx_freeze section for Linux. Note also the buildwin.bat and the buildmac.sh scripts: they call setup.py for you. HTH Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
