[PyQt] build pyqt for python2 and python3??
Phil Thompson
phil at riverbankcomputing.com
Thu Oct 21 08:58:03 BST 2010
On Wed, 20 Oct 2010 23:04:58 -0700 (PDT), BLACK HAWK
<el_sakir12 at yahoo.com>
wrote:
> hi guys,
> i have question about building pyqt for both python2 & python3 on the
same
> pc
>
> i want to have both of them as i develop all my apps on python2
> and i want to start porting them to python3
>
> i tried build python2-pyqt and all go well but i notic that some libs
> (pyuic4,pyrcc,sip-lib,...)
> are installed in general places and the same places for python3
>
> this will make python3 replace python2 installed file
>
> so is there a way to build python2 and rename binary files to something
> like
> (py2uic4,py2rcc)
> and for python3 it will be (py3uic4,py3rcc)
> and do the same for all libs installed outside python dist-utils folder
>
> i currently use ubuntu 10.10
> and for building
> 1-python2 configure.py ----> in case of python3 --> python3 configure.py
> 2-make
> 3-sudo checkinstall -D make install
>
> thanks in advance...
The files that are installed in common locations (pyuic4, pyrcc4,
pylupdate4) will work with both Python2 and Python3.
Phil
More information about the PyQt
mailing list