PyQt setup on Linux Mandrake 8.2

djw dwelch91 at
Sun Sep 22 21:55:48 EDT 2002

Thanks to you and the others, I finally got this to work. My remaining 
question/problem/puzzlement is what to do about the fact I now have two 
Python 2.2 installs on my system. Mandrake installed everything during 
its setup into /usr and everything I built/installed went into 
/usr/local. I was going to rip out the version that Mandrake layed down 
in /usr and just use the /usr/local copy, but when I ran the package 
manager and told it to uninstall all the various py* pieces, the list of 
dependencies it wanted to also delete was scary (stuff like filesystem 
modules). Unfortunately, when I try to install new py modules, they all 
want to install into /usr instead of /usr/local, since /usr/bin/python 
is ahead of /usr/local/bin/python on $PATH, causing sys.prefix to point 
to /usr, I suppose.

So, this leaves me wondering... its not possible to install Mandrake 
without Python (as evidenced by the dependencies), but the location it 
is installed at is "wrong" by default - so, what is the "proper" way to 
handle this situation? (It would seem nice to install Linux without 
Python and compile and install it afterwards). I can't tell from your 
list of commands where python is located, but I assume its in /usr? 
Also, I noticed that the copy of python that was installed by the system 
lacked Python.h, whereas the copy I compiled and installed had this 
file. Are you supposed to "overlay" the system copy in /usr with the 
extra files that things like sip/pyqt need (i.e., Python.h)?


Colin Brown wrote:
> "dwelch" <dwelch91 at> wrote in message
> news:3D8B4898.20808 at
>>I would like to setup PyQt 3.4 on my Mandrake 8.2 box.
> Hi Don
> I few months ago I installed PyQt under Mandrake Linux 8.2 for i586
> and ended up doing the following:
> ----------------------------------------------------------------------------
> Put tmake_1.8.tar.gz into /usr/local
> Put sip-3.3.2.tar.gz into /usr/local
> Put PyQt_3.3.2.tar.gz into /usr/local
> gunzip tmake_1.8.tar.gz
> tar -xvf tmake_1.8.tar
> gunzip sip-3.3.2.tar.gz
> tar -xvf sip-3.3.2.tar.gz
> gunzip PyQt_3.3.2.tar.gz
> tar -xvf PyQt_3.3.2.tar.gz
> TMAKEPATH=/usr/local/tmake_1.8/lib/linux-g++
> export TMAKEPATH
> cd /usr/local/sip-3.3.2
> python -q /usr/lib/qt2 -i /usr/lib/qt2/include -g
> /usr/local/tmake_1.8/bin/tmake -l qt-mt
> make
> make install
> cd /usr/local/PyQt_3.3.2
> python -q /usr/lib/qt2 -g /usr/local/tmake_1.8/bin/tmake -l qt-mt
> make
> make install
> ----------------------------------------------------------------------------
> I hope you find this useful.
> There was a compile error that have yet to follow up on to do with glu but
> apart from that I ended up with a pyuic that works okay with output from
> Qt_Designer except for the table and custom widgets. When I get time I
> will follow up on these.
> Cheers
> Colin Brown
> PyNZ

More information about the Python-list mailing list