From 03c70a763abcb8487632533e8c4c81d0fe9c1ced Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 20 Oct 2008 07:20:35 +0000 Subject: Move py file here too svn path=/trunk/KDE/kdelibs/; revision=873788 --- modules/FindPyQt.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/FindPyQt.py (limited to 'modules/FindPyQt.py') 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 +# 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) -- cgit v1.2.1 From 6a41335841372f6434795b9ada5fa41652d4d845 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Wed, 17 Dec 2008 20:33:13 +0000 Subject: PyQt SIP flags patch applied. CCBUGS: 177965 svn path=/trunk/KDE/kdelibs/; revision=898246 --- modules/FindPyQt.py | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/FindPyQt.py') diff --git a/modules/FindPyQt.py b/modules/FindPyQt.py index 1978f2d8..8e255319 100644 --- a/modules/FindPyQt.py +++ b/modules/FindPyQt.py @@ -20,3 +20,4 @@ for item in pyqtcfg.pyqt_sip_flags.split(' '): print("pyqt_version_tag:%s" % pyqt_version_tag) print("pyqt_sip_dir:%s" % pyqtcfg.pyqt_sip_dir) +print("pyqt_sip_flags:%s" % pyqtcfg.pyqt_sip_flags) -- cgit v1.2.1 From 87c903a8e853eec433860818a01040da8d1c5f1a Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 4 Jan 2009 15:39:53 +0000 Subject: -add missing copyright notices, I hope I got it right -also a few empty lines here and there to make it look nicer Alex svn path=/trunk/KDE/kdelibs/; revision=905547 --- modules/FindPyQt.py | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/FindPyQt.py') diff --git a/modules/FindPyQt.py b/modules/FindPyQt.py index 8e255319..5d2f9514 100644 --- a/modules/FindPyQt.py +++ b/modules/FindPyQt.py @@ -1,6 +1,7 @@ # Copyright (c) 2007, Simon Edwards # 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() -- cgit v1.2.1