SIP needs to be built prior to building PyQt.
Download SIP from here
Maya 2012 uses Qt 4.7.1.
Download it from here
Download PyQt from here
First step is to build qt from source. Extract the tarball and CD in to the directory
./configure
While running configure, if you get the following error
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/anoop/apps/sources/qt-everywhere-opensource-src-4.7.1 /mkspecs/linux-g++-64.
install teh libXext development package. I used zypper to install the package from the web
zypper install xorg-x11-libXext-devel
executing the configure after the installation gave the following error
cannot find -lXrender
this was happening because configure couldn’t find libXrender.so. This can be fixed by creating a symlink to libXrender.so.1 in the /usr/lib64 directory
ln -s /usr/lib64/libXrender.so.1 /usr/lib64/libXrender.so
After successful configuration run the following to install Qt to /usr/local/Trolltech/Qt-4.7.1 directory
make
make install
Building SIP
Extract the SIP zip archive to /home/username/SIP
cd /home/username/SIP
After setting the variables, run the following
/usr/autodesk/maya2012/bin/mayapy configure.py
make
make install
Building PyQt
Extract the archive to /home/username/PyQt-x11-gpl-4.7.4
cd PyPyQt-x11-gpl-4.7.4
/usr/autodesk/maya2012/bin/mayapy configure.py -q /usr/local/Trolltech/Qt-4.7.1/bin/qmake
make -j4
make install





Python can be used in Massive by typing commands directly in the textport and from scripts. The textport is accessed from the Options menu. Scripts can be run from the textport using the execfile() function and from the commandline using the -script commandline option.
Finally got my linux distro equipped with full functionality to resume my work on open source platforms. Configuring the network using YaST was just a piece of cake with a really interactive UI that included every information for even the novice user to get the job done. This was the third time I was installing SUSE within a span of 6 months and I had switched back to good old windows every time because of the lack of fully functional drivers for my Radeon 4200. But this time the ATI repository came handy. Last two times I had tried the conventional ”windows-user style“: Download drivers>run the file>and there you go, which proved out to be the most stupid thing on the earth to do. I had just neglected the need for a xorg-x11-server which I finally downloaded using YaST.