1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713
|
Installing PyQt4
================
Downloading SIP
---------------
SIP must be installed before building and using PyQt4. You can get the latest
release of the SIP source code from
http://www.riverbankcomputing.com/software/sip/download.
The SIP documentation can be found at http://pyqt.sourceforge.net/Docs/sip4/.
Downloading PyQt4
-----------------
You can get the latest release of the GPL version of the PyQt4 source code from
http://www.riverbankcomputing.com/software/pyqt/download.
If you are using the commercial version of PyQt4 then you should use the
download instructions which were sent to you when you made your purchase. You
must also download your license file.
Configuring PyQt4
-----------------
After unpacking the source package (either a ``.tar.gz`` or a ``.zip`` file
depending on your platform) you should then check for any :file:`README` files
that relate to your platform.
If you are using the commercial version of PyQt4 then you must copy your
license file to the :file:`sip` directory, or to the directory specified by the
:option:`--license-dir <configure-ng.py --license-dir>` option of
:program:`configure-ng.py`.
You need to make sure your environment variables are set properly for your
development environment.
In order to configure the build of PyQt4 you need to run either the
:program:`configure-ng.py` or the :program:`configure.py` script.
:program:`configure.py` is the original configuration script that uses the
build system of SIP v4 (i.e. the :mod:`sip.sipconfig` module). It will be
supported for the life of PyQt4.
:program:`configure-ng.py` is the new configuration script that uses Qt's
:program:`qmake` program to do all the heavy lifting. It has the following
advantages:
- it supports cross-compilation
- it is the basis of PyQt5's configuration script
- generated Makefiles have an uninstall target
- it will work with SIP v5 (which will have no build system).
Users are encouraged to switch to using :program:`configure-ng.py` in order to
ease the future transition to SIP v5 and/or PyQt5.
Using :program:`configure-ng.py`
................................
.. versionadded:: 4.10.1
The :program:`configure-ng.py` script is used to configure PyQt4 as follows::
python configure-ng.py
This assumes that the Python interpreter is on your path. Something like the
following may be appropriate on Windows::
c:\python34\python configure-ng.py
If you have multiple versions of Python installed then make sure you use the
interpreter for which you wish to build PyQt4 for.
The full set of command line options is:
.. program:: configure-ng.py
.. cmdoption:: --assume-shared
Normally Qt is checked to see if it has been built as shared libraries.
Some Linux distributions configure their Qt builds to make this check
unreliable. This option ignores the result of the check and assumes that
Qt has been built as shared libraries.
.. cmdoption:: --bindir <DIR>, -b <DIR>
The :program:`pyuic4`, :program:`pyrcc4` and :program:`pylupdate4`
utilities will be installed in the directory ``<DIR>``.
.. cmdoption:: --concatenate, -c
The C++ source files for a Python module will be concatenated. This
results in significantly reduced compilation times. Most, but not all,
C++ compilers can handle the large files that result. See also the
:option:`--concatenate-split` option.
.. cmdoption:: --concatenate-split <N>, -j <N>
If the :option:`--concatenate` option is used to concatenate the C++ source
files then this option determines how many files are created. The default
is 1.
.. cmdoption:: --configuration <FILE>
``<FILE>`` contains the configuration of the PyQt4 build to be used instead
of dynamically introspecting the system and is typically used when
cross-compiling. See :ref:`ref-configuration-files`.
.. cmdoption:: --confirm-license
Using this confirms that you accept the terms of the PyQt4 license.
.. cmdoption:: --dbus <DIR>, -s <DIR>
The :file:`dbus-python.h` header file of the dbus-python package can be
found in the directory ``<DIR>/dbus``.
.. cmdoption:: --debug, -u
The PyQt4 modules will be built with debugging symbols. On Windows this
requires that a debug version of Python is installed.
.. cmdoption:: --designer-plugindir <DIR>
The Python plugin for Qt Designer will be installed in the directory
``<DIR>``.
.. cmdoption:: --destdir <DIR>, -d <DIR>
The PyQt4 Python package will be installed in the directory ``<DIR>``. The
default is the Python installation's :file:`site-packages` directory. If
you use this option then the :envvar:`PYTHONPATH` environment variable must
include ``<DIR>``.
.. cmdoption:: --enable <MODULE>, -e <MODULE>
Normally all PyQt4 modules are enabled and are built if the corresponding
Qt library can be found. Using this option only those modules specifically
enabled will be checked for and built. The option may be specified any
number of times.
.. cmdoption:: --help, -h
Display a help message.
.. cmdoption:: --license-dir <DIR>
The license files needed by the commercial version of PyQt4 can be found in
the directory ``<DIR>``.
.. cmdoption:: --no-deprecated
All Qt v4 features that have been deprecated in Qt v5 will be disabled.
This is useful when porting PyQt4 applications to PyQt5.
.. cmdoption:: --no-designer-plugin
The Qt Designer plugin will not be built.
.. cmdoption:: --no-docstrings
The PyQt4 modules will not contain automatically generated docstrings.
.. cmdoption:: --no-python-dbus
The Qt support for the standard Python DBus bindings is disabled.
.. cmdoption:: --no-qsci-api
The :file:`PyQt4.api` QScintilla API file is not installed even if
QScintilla does appear to be installed.
.. cmdoption:: --no-sip-files
The ``.sip`` files for the PyQt4 modules will not be installed.
.. cmdoption:: --no-stubs
.. versionadded:: 4.12
The PEP 484 type hint stub files for the PyQt4 modules will not be
installed. This option is ignored (and the stub files are not installed)
for versions of Python earlier than v3.5.
.. cmdoption:: --no-tools
.. versionadded:: 4.11
The ``pyuic4``, ``pyrcc4`` and ``pylupdate4`` tools will not be built.
.. cmdoption:: --no-timestamp, -T
Normally the header comments of each generated C/C++ source file includes
a timestamp corresponding to when the file was generated. This option
suppresses the inclusion of the timestamp.
.. cmdoption:: --plugin <PLUGIN>, -t <PLUGIN>
If Qt has been built as static libraries then the static plugin
``<PLUGIN>`` will be linked with the appropriate PyQt4 module. The option
may be specified any number of times.
.. cmdoption:: --protected-is-public
On certain platforms the size of PyQt4 modules can be significantly reduced
by redefining the C++ ``protected`` keyword as ``public`` during
compilation. This option enables this behaviour and is the default on
Linux and MacOS/X.
.. cmdoption:: --protected-not-public
The default redefinition of ``protected`` to ``public`` during compilation
on Linux and MacOS/X is disabled.
.. cmdoption:: --pyuic4-interpreter <FILE>
``<FILE>`` is the name of the Python interpreter used in the pyuic4
wrapper. The default is platform dependent.
.. cmdoption:: --qmake <FILE>, -q <FILE>
Qt's :program:`qmake` program is used to determine how your Qt installation
is laid out. Normally :program:`qmake` is found on your :envvar:`PATH`.
This option can be used to specify a particular instance of
:program:`qmake` to use. This option is not available on Windows where
:program:`qmake` must be on :envvar:`PATH`.
.. cmdoption:: --qsci-api, -a
The :file:`PyQt4.api` QScintilla API file is installed even if QScintilla
does not appear to be installed. This option is implied if the
:option:`--qsci-api-destdir` option is specified.
.. cmdoption:: --qsci-api-destdir <DIR>, -n <DIR>
The QScintilla API file will be installed in the :file:`python`
subdirectory of the :file:`api` subdirectory of the directory ``<DIR>``.
.. cmdoption:: --sip <FILE>
The :program:`sip` program is used to generate PyQt4's C++ source code.
Normally :program:`sip` is found on your :envvar:`PATH`. This option can
be used to specify a particular instance of :program:`sip` to use.
.. cmdoption:: --sip-incdir <DIR>
The ``sip.h`` header file can be found in the directory ``<DIR>``.
.. cmdoption:: --sipdir <DIR>, -v <DIR>
The ``.sip`` files for the PyQt4 modules will be installed in the directory
``<DIR>``.
.. cmdoption:: --spec <SPEC>
The argument ``-spec SPEC`` will be passed to :program:`qmake`. The
default behaviour is platform specific. On Windows
:program:`configure-ng.py` will choose the value that is correct for the
version of Python that is being used. (However if you have built Python
yourself then you may need to explicitly specify ``<SPEC>``.) On MacOS
:program:`configure-ng.py` will try and avoid ``macx-xcode`` if possible.)
.. cmdoption:: --static, -k
The PyQt4 modules will be built as static libraries. This is useful when
building a custom interpreter with the PyQt4 modules built in to the
interpreter.
.. cmdoption:: --stubdir <DIR>
.. versionadded:: 4.12
The PEP 484 type hint stub files for the PyQt4 modules will be installed in
the directory ``<DIR>``. By default they will be stored in the same
directory as the corresponding extension modules. This option is ignored
(and the stub files are not installed) for versions of Python earlier than
v3.5.
.. cmdoption:: --sysroot <DIR>
.. versionadded:: 4.11
``<DIR>`` is the name of an optional directory that replaces ``sys.prefix``
in the names of other directories (specifically those specifying where the
various PyQt4 components will be installed and where the Python include and
library directories can be found). It is typically used when
cross-compiling or when building a static version of PyQt4. See
:ref:`ref-configuration-files`.
.. cmdoption:: --target-py-version <VERSION>
.. versionadded:: 4.11
``<VERSION>`` is the major and minor version (e.g. ``3.4``) of the version
of Python being targetted. By default the version of Python being used to
run the :program:`configure.py` script is used. It is typically used when
cross-compiling. See :ref:`ref-configuration-files`.
.. cmdoption:: --trace, -r
The generated PyQt4 modules contain additional tracing code that is enabled
using SIP's :func:`sip.settracemask` function.
.. cmdoption:: --verbose, -w
Compiler commands and any output issued during configuration is displayed
instead of being suppressed. Use this if :program:`configure-ng.py` is
having problems to see what exactly is going wrong.
.. cmdoption:: --version
Display the PyQt4 version number.
Any remaining command line arguments are expected to be in the form
``name=value`` or ``name+=value``. Such arguments are added to any
:program:`qmake` ``.pro`` file created by :program:`configure-ng.py`.
Using :program:`configure.py`
.............................
The :program:`configure.py` script is used to configure PyQt4 as follows::
python configure.py
This assumes that the Python interpreter is on your path. Something like the
following may be appropriate on Windows::
c:\python34\python configure.py
If you have multiple versions of Python installed then make sure you use the
interpreter for which you wish to build PyQt4 for.
The full set of command line options is:
.. program:: configure.py
.. cmdoption:: --assume-shared
Normally Qt is checked to see if it has been built as shared libraries.
Some Linux distributions configure their Qt builds to make this check
unreliable. This option ignores the result of the check and assumes that
Qt has been built as shared libraries.
.. cmdoption:: --bindir <DIR>, -b <DIR>
The :program:`pyuic4`, :program:`pyrcc4` and :program:`pylupdate4`
utilities will be installed in the directory ``<DIR>``.
.. cmdoption:: --concatenate, -c
The C++ source files for a Python module will be concatenated. This
results in significantly reduced compilation times. Most, but not all,
C++ compilers can handle the large files that result. See also the
:option:`--concatenate-split` option.
.. cmdoption:: --concatenate-split <N>, -j <N>
If the :option:`--concatenate` option is used to concatenate the C++ source
files then this option determines how many files are created. The default
is 1.
.. cmdoption:: --confirm-license
Using this confirms that you accept the terms of the PyQt4 license.
.. cmdoption:: --consolidate, -g
Normally each PyQt4 module (except for the :mod:`~PyQt4.Qt` module) is
linked against the corresponding Qt library. This option creates a module
called :mod:`~PyQt4._qt` which is linked against all the required Qt
libraries and the other modules are stub modules that populate their module
dictionaries from this one. This is useful when linking against static Qt
libraries to eliminate the need to distribute the Qt libraries while
minimising the memory footprint of the PyQt4 modules.
.. cmdoption:: --dbus <DIR>, -s <DIR>
The :file:`dbus-python.h` header file of the dbus-python package can be
found in the directory ``<DIR>/dbus``.
.. cmdoption:: --debug, -u
The PyQt4 modules will be built with debugging symbols. On Windows this
requires that a debug version of Python is installed.
.. cmdoption:: --destdir <DIR>, -d <DIR>
The PyQt4 Python package will be installed in the directory ``<DIR>``. The
default is the Python installation's :file:`site-packages` directory. If
you use this option then the :envvar:`PYTHONPATH` environment variable must
include ``<DIR>``.
.. cmdoption:: --enable <MODULE>, -e <MODULE>
Normally all PyQt4 modules are enabled and are built if the corresponding
Qt library can be found. Using this option only those modules specifically
enabled will be checked for and built. The option may be specified any
number of times.
.. cmdoption:: --help, -h
Display a help message.
.. cmdoption:: --no-deprecated
All Qt v4 features that have been deprecated in Qt v5 will be disabled.
This is useful when porting PyQt4 applications to PyQt5.
.. cmdoption:: --no-designer-plugin
The Qt Designer plugin will not be built.
.. cmdoption:: --no-docstrings
The PyQt4 modules will not contain automatically generated docstrings.
.. cmdoption:: --no-qsci-api
The :file:`PyQt4.api` QScintilla API file is not installed even if
QScintilla does appear to be installed.
.. cmdoption:: --no-sip-files
The ``.sip`` files for the PyQt4 modules will not be installed.
.. cmdoption:: --no-timestamp, -T
Normally the header comments of each generated C/C++ source file includes
a timestamp corresponding to when the file was generated. This option
suppresses the inclusion of the timestamp.
.. cmdoption:: --plugin <PLUGIN>, -t <PLUGIN>
If Qt has been built as static libraries then the static plugin
``<PLUGIN>`` will be linked with the appropriate PyQt4 module. The option
may be specified any number of times.
.. cmdoption:: --plugin-destdir <DIR>, -p <DIR>
The Qt Designer plugin that manages plugins implemented in Python will be
installed in the :file:`designer` subdirectory of the directory ``<DIR>``.
.. cmdoption:: --protected-is-public
On certain platforms the size of PyQt4 modules can be significantly reduced
by redefining the C++ ``protected`` keyword as ``public`` during
compilation. This option enables this behaviour and is the default on
Linux and MacOS/X.
.. cmdoption:: --protected-not-public
The default redefinition of ``protected`` to ``public`` during compilation
on Linux and MacOS/X is disabled.
.. cmdoption:: --qmake <FILE>, -q <FILE>
Qt's :program:`qmake` program is used to determine how your Qt installation
is laid out. Normally :program:`qmake` is found on your :envvar:`PATH`.
This option can be used to specify a particular instance of
:program:`qmake` to use. This option is not available on Windows.
.. cmdoption:: --qsci-api, -a
The :file:`PyQt4.api` QScintilla API file is installed even if QScintilla
does not appear to be installed. This option is implied if the
:option:`--qsci-api-destdir` option is specified.
.. cmdoption:: --qsci-api-destdir <DIR>, -n <DIR>
The QScintilla API file will be installed in the :file:`python`
subdirectory of the :file:`api` subdirectory of the directory ``<DIR>``.
.. cmdoption:: --sipdir <DIR>, -v <DIR>
The ``.sip`` files for the PyQt4 modules will be installed in the directory
``<DIR>``.
.. cmdoption:: --static, -k
The PyQt4 modules will be built as static libraries. This is useful when
building a custom interpreter with the PyQt4 modules built in to the
interpreter.
.. cmdoption:: --trace, -r
The generated PyQt4 modules contain additional tracing code that is enabled
using SIP's :func:`sip.settracemask` function.
.. cmdoption:: --use-arch <ARCH>
When :program:`pyuic4` calls the Python interpreter on MacOS it will be run
using the architecture ``<ARCH>``. See the section :ref:`ref-macos`.
.. cmdoption:: --verbose, -w
Compiler commands and any output issued during configuration is displayed
instead of being suppressed. Use this if :program:`configure.py` is having
problems to see what exactly is going wrong.
.. cmdoption:: --version
Display the PyQt4 version number.
.. _ref-macos:
Configuring SIP and PyQt4 for MacOS
...................................
Note that this section only applies if you are using the
:program:`configure.py` script to configure PyQt4. The
:program:`configure-ng.py` script leaves it to Qt's :program:`qmake` program to
handle the details. :program:`configure-ng.py` does not support the creation
of universal binaries.
Building applications for MacOS can be a complex process. Typically the
following need to be taken into account:
- the architectures (i.e. i386, x86_64, ppc) that you want to support
- the earliest version of MacOS you want to support (i.e. the deployment
target)
- the version of the SDK you want to use.
If you are using a binary installer for Python and/or Qt then you also need to
consider how they have been built regarding the above, and what bugs they have.
SIP's and PyQt4's :program:`configure.py` scripts provide the necessary command
line options to allow the correct configurations to be specified - the trick is
to work out which options to use depending on the versions of Python and Qt you
have installed.
SIP provides the following command line options to its :program:`configure.py`
script.
- ``--arch <ARCH>`` specifies the target architecture and may be specified a
number of times.
- ``--universal`` is a shortcut for ``--arch i386 --arch ppc``.
- ``--deployment-target <VERSION>`` specifies the earliest version of MacOS you
want to support. This sets the :envvar:`MACOSX_DEPLOYMENT_TARGET`
environment variable and should be used rather than setting the environment
variable in the shell (to work around bugs in some versions of Python).
- ``--sdk <SDK>`` specifies the SDK to use.
PyQt4 provides the :option:`--use-arch <configure.py --use-arch>` option that
specifies which architecture certain PyQt4 tools (actually only
:program:`pyuic4` at the moment) will use when running Python. For example, if
your Qt installation is 32 bits, and your Python installation is 32 bits and
64 bits then you will need to specify ``--use-arch i386`` to ensure that
:program:`pyuic4` runs the 32 bit version of Python.
Building PyQt4
--------------
The next step is to build PyQt4 by running your platform's :program:`make`
command. For example::
make
The final step is to install PyQt4 by running the following command::
make install
(Depending on your system you may require root or administrator privileges.)
This will install the various PyQt4 components.
.. _ref-configuration-files:
Configuring with Configuration Files
------------------------------------
The :program:`configure-ng.py` script normally introspects the Python
installation of the interpreter running it in order to determine the names of
the various files and directories it needs. This is fine for a native build of
PyQt4 but isn't appropriate when cross-compiling. In this case it is possible
to supply a configuration file, specified using the
:option:`--configuration <configure-ng.py --configuration>` option, which
contains definitions of all the required values.
A configuration file is made up of a number of named sections each of which
contains a number of configuration items. The format of a configuration file
is as follows:
- a section name is a single line with the name enclosed between ``[`` and
``]``
- a configuration item is a single line containing a name/value pair separated
by ``=``
- values may be extended to lines immediately following if they are indented by
at least one space
- a value may include another value by embedding the name of that value
enclosed between ``%(`` and ``)``
- comments begin with ``#`` and continue to the end of the line
- blank lines are ignored.
Those configuration items that appear before the first section name are
automatically added to all sections.
A configuration file defines a section for each version of Qt that requires a
different configuration. :program:`configure-ng.py` will choose the most
appropriate section according to the version of Qt you are actually using. For
example, if a configuration file contains sections for Qt v5.3 and Qt v5.1 and
you are using Qt v5.2.1 then the section for Qt v5.1 will be chosen.
:program:`configure-ng.py` provides the following preset values for a
configuration:
``py_major``
is the major version number of the target Python installation.
``py_minor``
is the minor version number of the target Python installation.
``sysroot``
is the name of the system root directory. This is specified with the
:option:`--sysroot <configure-ng.py --sysroot>` option.
The following is an example configuration file::
# The target Python installation.
py_platform = linux
py_inc_dir = %(sysroot)/usr/include/python%(py_major).%(py_minor)
py_pylib_dir = %(sysroot)/usr/lib/python%(py_major).%(py_minor)/config
py_pylib_lib = python%(py_major).%(py_minor)mu
# The target PyQt installation.
pyqt_module_dir = %(sysroot)/usr/lib/python%(py_major)/dist-packages
pyqt_bin_dir = %(sysroot)/usr/bin
pyqt_sip_dir = %(sysroot)/usr/share/sip/PyQt4
pyuic_interpreter = /usr/bin/python%(py_major).%(py_minor)
pyqt_disabled_features = PyQt_Desktop_OpenGL PyQt_qreal_double
# Qt configuration common to all versions.
qt_shared = True
[Qt 5.1]
pyqt_modules = QtCore QtDBus QtDesigner QtGui QtHelp QtMultimedia
QtMultimediaWidgets QtNetwork QtOpenGL QtPrintSupport QtQml QtQuick
QtSensors QtSerialPort QtSql QtSvg QtTest QtWebKit QtWebKitWidgets
QtWidgets QtXmlPatterns _QOpenGLFunctions_ES2
This example contains a section for Qt v5.1. We have defined a number of
values before the start of the section as they are not specific to any
particular version of Qt. Note that if you use this configuration with a
version of Qt earlier than v5.1 then you will get an error.
The following values can be specified in the configuration file:
``qt_shared``
is set if Qt has been built as shared libraries. The default value is
``False``.
``py_platform``
is the target Python platform.
``py_inc_dir``
is the target Python include directory, i.e. the directory containing the
``Python.h`` file.
``py_pylib_dir``
is the target Python library directory.
``py_pylib_lib``
is the target Python interpreter library. It should not include any
platform-specific prefix or suffix.
``pyqt_disabled_features``
is the space separated list of features (as defined by SIP's ``%Feature``
directive) that should be disabled.
``pyqt_module_dir``
is the target directory where the PyQt4 modules will be installed. It can
be overridden by the :option:`--destdir <configure-ng.py --destdir>`
option.
``pyqt_modules``
is the space separated list of PyQt4 modules that will be built. It can be
overridden by the :option:`--enable <configure-ng.py --enable>` option.
``pyqt_bin_dir``
is the name of the target directory where the PyQt4 related executables
will be installed. It can be overridden by the
:option:`--bindir <configure-ng.py --bindir>` option.
``pyqt_sip_dir``
is the name of the target directory where the PyQt4 ``.sip`` files will be
installed. It can be overridden by the
:option:`--sipdir <configure-ng.py --sipdir>` option.
``pyuic_interpreter``
is the name of the Python interpreter (as it would be called from the
target system) that will be used to run :program:`pyuic4`. It can be
overridden by the
:option:`--pyuic4-interpreter <configure-ng.py --pyuic4-interpreter>`
option.
|