* [gentoo-commits] gentoo-x86 commit in sci-visualization/qtiplot/files: qtiplot-0.9.8.9-PyQt4-4.11.3.patch
@ 2015-01-08 8:41 Justin Lecher (jlec)
0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2015-01-08 8:41 UTC (permalink / raw
To: gentoo-commits
jlec 15/01/08 08:41:53
Added: qtiplot-0.9.8.9-PyQt4-4.11.3.patch
Log:
sci-visualization/qtiplot: Adopt dependencies to work with latest patches, #528724
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Revision Changes Path
1.1 sci-visualization/qtiplot/files/qtiplot-0.9.8.9-PyQt4-4.11.3.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-PyQt4-4.11.3.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-PyQt4-4.11.3.patch?rev=1.1&content-type=text/plain
Index: qtiplot-0.9.8.9-PyQt4-4.11.3.patch
===================================================================
qtiplot/python-sipcmd.py | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/qtiplot/python-sipcmd.py b/qtiplot/python-sipcmd.py
index f643194..d8d1ef2 100755
--- a/qtiplot/python-sipcmd.py
+++ b/qtiplot/python-sipcmd.py
@@ -27,6 +27,21 @@
# #
############################################################################
-from PyQt4 import pyqtconfig
-config = pyqtconfig.Configuration()
-print " ".join([config.sip_bin, "-I", config.pyqt_sip_dir, config.pyqt_sip_flags])
+from __future__ import print_function
+
+import os
+import sipconfig
+import PyQt4.QtCore
+
+try:
+ # >= 4.10
+ SIP_FLAGS = PyQt4.QtCore.PYQT_CONFIGURATION['sip_flags']
+except:
+ import PyQt4.pyqtconfig
+ SIP_FLAGS = PyQt4.pyqtconfig.Configuration().pyqt_sip_flags
+
+PYQT_SIP_DIR = os.path.join(sipconfig.Configuration().default_sip_dir, 'PyQt4')
+SIP_BIN = sipconfig.Configuration().sip_bin
+SIP_INC_DIR = sipconfig.Configuration().sip_inc_dir
+
+print(" ".join([SIP_BIN, "-I", PYQT_SIP_DIR, SIP_FLAGS]))
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-08 8:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-08 8:41 [gentoo-commits] gentoo-x86 commit in sci-visualization/qtiplot/files: qtiplot-0.9.8.9-PyQt4-4.11.3.patch Justin Lecher (jlec)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox