[PyQt] Install script for Python applications

Lukas Hetzenecker LuHe at gmx.at
Fri Dec 11 11:11:34 GMT 2009


Hello,

I've developed a application using Python and PyQt4.
What is the best way to make a install.py / setup.py / Makefile for installing 
this application?

It should check if all depencies are found (this should be really simple: try: 
import xxx except ImportError: print ""; sys.exit(2) )

It should compile and copy all *.py/pyc files to 
python -c "from distutils.sysconfig import get_python_lib; print 
get_python_lib()"

There are also some files that should be in /usr/share/<appname>

A small wrapper script, that is written to /usr/local/bin would also be nice.

Is this possible with distutils?
I looked in the source code of eric4 and found a setup.py script, which seems 
to do everything manually. Is there a template for this?

What do you use for distributing your applications for Linux?

Thanks for your suggestions,
Lukas


More information about the PyQt mailing list