Command Line Tools
PyQt-builder adds the following command line options to SIP’s build tools. Unless stated otherwise, each option is added to all of the build tools.
Note
Individual projects may also add their own project-specific command line options.
- --android-abi ABI
The target Android ABI. This option may be given any number of times.
- --apple-universal2
Build the project as an Apple universal package supporting both x86_64 and arm64 architectures. The default is to build for the native architecture.
- --jobs N
On Linux and macOS N make jobs will be run in parallel.
- --link-full-dll
On Windows the full Python API and the limited API (as used by PyQt) are implemented in different DLLs. Normally the limited DLL is linked (unless a debug version of the Python interpreter is being used. This option forces the full API DLL to be linked instead.
- --no-make
Do not automatically invoke make or nmake. (sip-build only.)
- --qmake FILE
Qt’s qmake program is used to determine how your Qt installation is laid out. Normally qmake is found on your
PATH
. This option can be used to specify a particular instance of qmake to use.
- --qmake-setting 'NAME += VALUE'
The setting will be added to any qmake
.pro
file that is created. This option may be given any number of times.
- --qml-debug
Enable the QML debugging infrastructure. This should not be enabled in a production environment.
- --spec SPEC
The argument
-spec SPEC
will be passed to qmake. The default behaviour is platform specific. On Windows the value that is chosen is correct for the version of Python that is being used. (However if you have built Python yourself then you may need to explicitly specifySPEC
.) On macOSmacx-xcode
will be avoided if possible.
- --target-qt-dir DIR
The extension modules will be re-targeted to expect the Qt libraries to be installed in DIR when the wheel is installed. (sip-wheel only.)