MacPorts, Qt4 and PyQT
This is simply written down for references. If you want to use PyQt with the qt4-mac port from macports, you need to do several things, because (a) there are no PyQt bindings in Macports yet for qt4 and (b) py-sip is version 4.6 while you need 4.7 for the PyQt bindings:
- Execute the following commands:
sudo port install python24 python_select sudo python_select python24 cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-sip
- Edit the Portfile and change the following things:
- Change the following lines:
version 4.7.1
checksums md5 083a4241ce63f9d44fbadc8f3c6d6f42 - Remove the other two lines with the checksums or comment them out
- Change the following lines:
- Execute the following commands:
port install py-sip
port install qt4-mac - You can do this while qt4-mac is building:
- Download the PyQt bindings for Mac from here.
- Unzip it and go to that directory.
- Execute the following commands:
python configure.pymakesudo make install
Done!
Edit: This will work, mostly, but pyuic seems to be broken
Edit 20-3-2008: You can find more info in my latest post about this.






