[PyQt] Disable installation of SIP files for static libraries
Giovanni Bajo
rasky at develer.com
Mon Jul 16 15:49:45 BST 2007
Hello,
if Qt is built as a static library, there's no need to install the .SIP
files of PyQt because it will not be possible to build a derived library
anyway.
This patch disables installation of SIP files in such a condition.
--
Giovanni Bajo
-------------- next part --------------
--- configure.py.old 2007-07-16 04:44:13.000000000 +0200
+++ configure.py 2007-07-16 16:42:32.156639100 +0200
@@ -735,7 +735,8 @@
if pydbusmoddir:
sipconfig.inform("The dbus support module will be installed in %s." % pydbusmoddir)
- sipconfig.inform("The PyQt .sip files will be installed in %s." % opts.pyqtsipdir)
+ if qt_shared:
+ sipconfig.inform("The PyQt .sip files will be installed in %s." % opts.pyqtsipdir)
sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opts.pyqtbindir)
@@ -1156,7 +1157,9 @@
for s in glob.glob("sip/" + mname + "/*.sip"):
sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
- installs.append([sipfiles, os.path.join(opts.pyqtsipdir, mname)])
+ # SIP files are only installed if Qt is built as a shared library.
+ if qt_shared:
+ installs.append([sipfiles, os.path.join(opts.pyqtsipdir, mname)])
opengl = (mname == "QtOpenGL")
More information about the PyQt
mailing list