aboutsummaryrefslogtreecommitdiff
path: root/modules/FindPyQt.py
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2008-10-20 07:20:35 +0000
committerLaurent Montel <montel@kde.org>2008-10-20 07:20:35 +0000
commit03c70a763abcb8487632533e8c4c81d0fe9c1ced (patch)
tree8e3cfbab393e96cf5cc0b026ae79be38ce5094c6 /modules/FindPyQt.py
parentfb272057e078bd4e9798c487dcc0b0d4ffb523b1 (diff)
downloadextra-cmake-modules-03c70a763abcb8487632533e8c4c81d0fe9c1ced.tar.gz
extra-cmake-modules-03c70a763abcb8487632533e8c4c81d0fe9c1ced.tar.bz2
Move py file here too
svn path=/trunk/KDE/kdelibs/; revision=873788
Diffstat (limited to 'modules/FindPyQt.py')
-rw-r--r--modules/FindPyQt.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/FindPyQt.py b/modules/FindPyQt.py
new file mode 100644
index 00000000..1978f2d8
--- /dev/null
+++ b/modules/FindPyQt.py
@@ -0,0 +1,22 @@
+# Copyright (c) 2007, Simon Edwards <simon@simonzone.com>
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+import PyQt4.pyqtconfig
+
+pyqtcfg = PyQt4.pyqtconfig.Configuration()
+print("pyqt_version:%06.0x" % pyqtcfg.pyqt_version)
+print("pyqt_version_str:%s" % pyqtcfg.pyqt_version_str)
+
+pyqt_version_tag = ""
+in_t = False
+for item in pyqtcfg.pyqt_sip_flags.split(' '):
+ if item=="-t":
+ in_t = True
+ elif in_t:
+ if item.startswith("Qt_4"):
+ pyqt_version_tag = item
+ else:
+ in_t = False
+print("pyqt_version_tag:%s" % pyqt_version_tag)
+
+print("pyqt_sip_dir:%s" % pyqtcfg.pyqt_sip_dir)