# PyQt
# ====
# Before you run through this, or anything else related to Qt, make sure
# that you have QTDIR defined (usually to /usr/lib/qt) and that you have Qt's
# bin directory (/usr/lib/qt/bin) set in your PATH.
mkdir -p -m 0700 ~/installed/pyqt ~/src/pyqt
# sip 4.4.5
# =========
# If you use Python 2.3 or 2.4, this version should be OK, if you use Python
# 2.5, try the snapshot below.
# There is a PyQt 4.x too, but that is for Qt 4.x, which I'm not using yet
cd
test -f installed/pyqt/PyQt-x11-gpl-3.16.tar.gz &&
mv installed/pyqt/PyQt-x11-gpl-3.16.tar.gz .
test ! -f PyQt-x11-gpl-3.16.tar.gz &&
wget http://www.riverbankcomputing.com/Downloads/PyQt3/GPL/\
PyQt-x11-gpl-3.16.tar.gz
mkdir -p -m 0700 src/pyqt
cd src/pyqt
find -maxdepth 1 -type d -name "PyQt-x11-gpl-*" -exec rm -r {} \;
tar xzvf ~/PyQt-x11-gpl-3.16.tar.gz
cd PyQt-x11-gpl-3.16
test $UID = 0 && chown -R root:root .
# Don't run this if you don't accept the license:
echo "yes" | python configure.py
make
su -c "make install"
cd
rm -f installed/pyqt/PyQt-x11-gpl-*.tar.*
mv PyQt-x11-gpl-3.16.tar.gz installed/pyqt/
# There is a PyQt 4.x too, but that is for Qt 4.x, which I'm not using yet
cd
test -f installed/pyqt/PyQt-x11-gpl-3-snapshot-20061021.tar.gz &&
mv installed/pyqt/PyQt-x11-gpl-3-snapshot-20061021.tar.gz .
test ! -f PyQt-x11-gpl-3-snapshot-20061021.tar.gz &&
wget http://www.riverbankcomputing.com/Downloads/Snapshots/PyQt3/\
PyQt-x11-gpl-3-snapshot-20061021.tar.gz
mkdir -p -m 0700 src/pyqt
cd src/pyqt
find -maxdepth 1 -type d -name "PyQt-x11-gpl-*" -exec rm -r {} \;
tar xzvf ~/PyQt-x11-gpl-3-snapshot-20061021.tar.gz
cd PyQt-x11-gpl-3-snapshot-20061021
test $UID = 0 && chown -R root:root .
# Don't run this if you don't accept the license:
echo "yes" | python configure.py
make
su -c "make install"
cd
rm -f installed/pyqt/PyQt-x11-gpl-*.tar.*
mv PyQt-x11-gpl-3-snapshot-20061021.tar.gz installed/pyqt/