On Mon, 2011-01-10 at 13:10 +0000, Purma Jukka wrote: > Hi, > > I'm planning to move my Python+Qt project from PyQt4 to PySide before > making it public and adding license texts. ( demo: > http://www.youtube.com/watch?v=UcH9Drp0FpE ) Soon after that I should > have at least Mac standalone app and Windows executable available for > interested people, but at this point I am a bit worried if I can get > the existing deployment tools like py2app, py2exe to work with PySide. > I noticed that cx_freeze is one new option too. My project uses only > QtCore and QtGui and is mostly done in Mac OS X Snow Leopard. My > access to Windows machines is quite rare, so I need a reliable method > for building .exe:s. > > My question is, are there any people who are currently actively and > successfully deploying mac apps and windows .exes out from their > PySide projects? What tools are working and is the overall process > "like it should be" or something that will change with the progress of > PySide (in near months)?
I have successfully built win32 versions with py2exe, mac versions with py2app and linux versions with cxfreeze. Like you, I use only QtCore and QtGui. The only tricky part I found is that the mac version requires the "qt_menu.nib" bundle in its resources folder. I had to add a custom step to my build to copy it into the right place. FWIW, I did custom builds of Qt and PySide for both Linux and OSX. Not sure if this increased or decreased my chances of everything working smoothly... I have also written a neat little tool called "hatchet" that I use to slim down my frozen apps. It basically re-compiles the PySide modules to expose only the classes and methods used by the frozen application. If you don't use too much of the Qt API, it can shave several megabytes off the final size of your distribution: https://github.com/rfk/pysidekick/blob/master/PySideKick/Hatchet.py I have an almost-finished blog-post-slash-tutorial on using hatchet, will post to the list when it's ready. Cheers, Ryan -- Ryan Kelly http://www.rfk.id.au | This message is digitally signed. Please visit [email protected] | http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed message part
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
