[PyQt] determining pyqt version

Phil Thompson phil at riverbankcomputing.com
Sat Jul 18 11:04:52 BST 2009


On Sat, 18 Jul 2009 11:59:23 +0200, Wolfgang Rohdewald
<wolfgang at rohdewald.de> wrote:
> I am doing that with:
> 
> import PyQt4.pyqtconfig
> PYQTVERSION = PyQt4.pyqtconfig.Configuration().pyqt_version_str
> 
> but now that I tried to deploy it I see that this imports
> sipconfig which is part of the ubuntu package python-sip4-dev
> 
> I do not want to depend on -dev packages on target machines,
> is there any other way to find out the current version?

PyQt4.QtCore.PYQT_VERSION_STR
PyQt4.QtCore.PYQT_VERSION

Phil


More information about the PyQt mailing list