Deploying PyQt Applications

This page contains information about some of the tools that could be used to deploy PyQt applications on various platforms, typically in binary form.

The idea is that each solution should be listed along with a brief description and a link to its home page. The description should probably come from the solution's home page or documentation, so that it is described "in its own words". Further comments and links for each can be given after these fields.

Cross-Platform Solutions

The following tools are cross-platform, working on Windows and some flavours of Unix.

PyInstaller

http://pyinstaller.python-hosting.com/

PyQt4: in order to make PyQt4 work correctly with PyInstaller you have to create a file "hook-PyQt4.py" in the hooks/ folder of PyInstaller and put the line "hiddenimports = ['sip']" into it.

cx_Freeze

http://starship.python.net/crew/atuining/cx_Freeze/index.html

Freeze

The original freeze tool that embeds Python bytecode into executables is supplied with Python - look in the examples/Tools directory.

qmake

For applications that don't depend too much on many shared library modules other than the ones shipped with PyQt, it may be possible to take advantage of qmake's features and a simple launcher application to create binaries for different platforms.

Tools for Windows

The following tools are designed to produce executables for Windows.

py2exe

http://www.py2exe.org/

Comments: I highly recommend py2exe which can produce nice executables. Combined with InnoSetup, you get a full standard windows application and the user has no idea that the stuff was actually developed on Linux with Open Source technologies. -- Philippe Fremy

See the following links for more information about deploying PyQt applications with py2exe:

ExeMaker

http://effbot.org/zone/exemaker.htm

Tools for Mac OS X

The following tools are designed to produce executables for Mac OS X.

py2app

http://undefined.org/python/#py2app

Deploying PyQt Applications (last edited 2007-12-09 19:32:57 by 53d82bfd)