[PyQt] Install script for Python applications
Darren Dale
dsdale24 at gmail.com
Fri Dec 11 12:37:01 GMT 2009
On Fri, Dec 11, 2009 at 6:11 AM, Lukas Hetzenecker <LuHe at gmx.at> wrote:
> 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'd advise using distutils. It supports everything you describe, with
the exception of dependency checking, which you would have to code
yourself.
Darren
More information about the PyQt
mailing list