8
SIP v5 will not include an extensible build system, i.e it will not provide an
9
equivalent of SIP v4's :mod:`sipconfig` module. Consequently a version of PyQt
10
built with SIP v5 will not provide an equivalent of the
11
:mod:`~PyQt4.pyqtconfig` module. However there is still a need for certain
12
information to be shared between PyQt and other modules (such as QScintilla's
13
:mod:`~PyQt4.Qsci` module) that are built on top of it. Specifically it is
14
important that the same ``-t`` and ``-x`` command line flags are passed to the
15
``sip`` executable to create, for example, the QScintilla bindings as were
16
passed to create the PyQt bindings.
18
Starting with v4.10, :attr:`PyQt4.QtCore.PYQT_CONFIGURATION` is a dict that
19
describes how PyQt was configured. At the moment it contains a single value
20
called ``sip_flags`` which is a string containing the appropriate ``-t`` and
29
The old PyQt4 build system is an extension of the SIP v4 build system and is
30
implemented by the :mod:`~PyQt4.pyqtconfig` module. It can be used by
31
configuration scripts of other bindings that build on top of PyQt4 and takes
32
care of the details of the Qt installation.
34
Note that the :mod:`~PyQt4.pyqtconfig` module is only created if you use
35
:program:`configure.py` and not if you use :program:`configure-ng.py`.
37
.. module:: PyQt4.pyqtconfig
39
.. class:: Configuration(sub_cfg=None)
41
This class encapsulates configuration values that can be accessed as
42
instance objects. It is derived from :class:`sipconfig.Configuration`.
45
an optional list of sub-class configurations. It should only be used
46
by the ``__init__()`` method of a sub-class to append its own
47
dictionary of configuration values before passing the list to its
50
.. attribute:: pyqt_bin_dir
52
The name of the directory where the PyQt4 utilities are installed.
54
.. attribute:: pyqt_config_args
56
The command line passed to :program:`configure.py` when PyQt4 was
59
.. attribute:: pyqt_mod_dir
61
The name of the directory where the :mod:`PyQt4` Python package is
64
.. attribute:: pyqt_modules
66
A space separated string of installed PyQt4 modules. The :mod:`Qt`
67
module is not included.
69
.. attribute:: pyqt_sip_dir
71
The name of the base directory where PyQt4's ``.sip`` files are
72
installed. Each module's ``.sip`` files are installed in a
73
sub-directory with the same name as the module.
75
.. attribute:: pyqt_sip_flags
77
A space separated string of the :program:`sip` command line options
78
used to build the PyQt4 modules. These should also be used when
79
building bindings that ``%Import`` any PyQt4 modules.
81
.. attribute:: pyqt_version
83
The PyQt4 version as a 3 part hexadecimal number (e.g. v4.0.1 is
84
represented as ``0x040001``).
86
.. attribute:: pyqt_version_str
88
The PyQt4 version as a string. For development snapshots it will start
91
.. attribute:: qt_data_dir
93
The value of ``QLibraryInfo::location(DataPath)`` for the Qt
96
.. attribute:: qt_archdata_dir
98
When building against Qt v5 this is the value of
99
``QLibraryInfo::location(ArchDataPath)``. When building against Qt v4
100
it is the value of ``QLibraryInfo::location(DataPath)``.
102
.. attribute:: qt_dir
104
The root directory of the Qt installation (normally the directory that
105
contains the :file:`bin` directory).
107
.. attribute:: qt_edition
111
.. attribute:: qt_framework
113
Set if Qt is built as a MacOS/X framework.
115
.. attribute:: qt_inc_dir
117
The value of ``QLibraryInfo::location(HeadersPath)`` for the Qt
120
.. attribute:: qt_lib_dir
122
The value of ``QLibraryInfo::location(LibrariesPath)`` for the Qt
125
.. attribute:: qt_threaded
127
Set if Qt is built with thread support (always set for PyQt4).
129
.. attribute:: qt_version
131
The Qt version as a 3 part hexadecimal number (e.g. v4.1.2 is
132
represented as ``0x040102``).
134
.. attribute:: qt_winconfig
136
Additional Windows specific configuration.
139
.. class:: QtAssistantModuleMakefile
141
This class encapsulates a Makefile to build a SIP generated Python
142
extension module that is built on the PyQt4 :mod:`~PyQt4.QtAssistant`
146
.. class:: QAxContainerModuleMakefile
148
This class encapsulates a Makefile to build a SIP generated Python
149
extension module that is built on the PyQt4 :mod:`~PyQt4.QAxContainer`
153
.. class:: QtCoreModuleMakefile
155
This class encapsulates a Makefile to build a SIP generated Python
156
extension module that is built on the PyQt4 :mod:`~PyQt4.QtCore` module.
159
.. class:: QtDBusModuleMakefile
161
This class encapsulates a Makefile to build a SIP generated Python
162
extension module that is built on the PyQt4 :mod:`~PyQt4.QtDBus` module.
165
.. class:: QtDeclarativeModuleMakefile
167
This class encapsulates a Makefile to build a SIP generated Python
168
extension module that is built on the PyQt4 :mod:`~PyQt4.QtDeclarative`
172
.. class:: QtDesignerModuleMakefile
174
This class encapsulates a Makefile to build a SIP generated Python
175
extension module that is built on the PyQt4 :mod:`~PyQt4.QtDesigner`
179
.. class:: QtGuiModuleMakefile
181
This class encapsulates a Makefile to build a SIP generated Python
182
extension module that is built on the PyQt4 :mod:`~PyQt4.QtGui` module.
185
.. class:: QtHelpModuleMakefile
187
This class encapsulates a Makefile to build a SIP generated Python
188
extension module that is built on the PyQt4 :mod:`~PyQt4.QtHelp` module.
191
.. class:: QtMultimediaModuleMakefile
193
This class encapsulates a Makefile to build a SIP generated Python
194
extension module that is built on the PyQt4 :mod:`~PyQt4.QtMultimedia`
198
.. class:: QtNetworkModuleMakefile
200
This class encapsulates a Makefile to build a SIP generated Python
201
extension module that is built on the PyQt4 :mod:`~PyQt4.QtNetwork` module.
204
.. class:: QtOpenGLModuleMakefile
206
This class encapsulates a Makefile to build a SIP generated Python
207
extension module that is built on the PyQt4 :mod:`~PyQt4.QtOpenGL` module.
210
.. class:: QtScriptModuleMakefile
212
This class encapsulates a Makefile to build a SIP generated Python
213
extension module that is built on the PyQt4 :mod:`~PyQt4.QtScript` module.
216
.. class:: QtScriptToolsModuleMakefile
218
This class encapsulates a Makefile to build a SIP generated Python
219
extension module that is built on the PyQt4 :mod:`~PyQt4.QtScriptTools`
223
.. class:: QtSqlModuleMakefile
225
This class encapsulates a Makefile to build a SIP generated Python
226
extension module that is built on the PyQt4 :mod:`~PyQt4.QtSql` module.
229
.. class:: QtSvgModuleMakefile
231
This class encapsulates a Makefile to build a SIP generated Python
232
extension module that is built on the PyQt4 :mod:`~PyQt4.QtSvg` module.
235
.. class:: QtTestModuleMakefile
237
This class encapsulates a Makefile to build a SIP generated Python
238
extension module that is built on the PyQt4 :mod:`~PyQt4.QtTest` module.
241
.. class:: QtWebKitModuleMakefile
243
This class encapsulates a Makefile to build a SIP generated Python
244
extension module that is built on the PyQt4 :mod:`~PyQt4.QtWebKit` module.
247
.. class:: QtXmlModuleMakefile
249
This class encapsulates a Makefile to build a SIP generated Python
250
extension module that is built on the PyQt4 :mod:`~PyQt4.QtXml` module.
253
.. class:: QtXmlPatternsModuleMakefile
255
This class encapsulates a Makefile to build a SIP generated Python
256
extension module that is built on the PyQt4 :mod:`~PyQt4.QtXmlPatterns`
260
.. class:: phononModuleMakefile
262
This class encapsulates a Makefile to build a SIP generated Python
263
extension module that is built on the PyQt4 :mod:`~PyQt4.phonon` module.