Some questions about next versions of SIP
Boudewijn Rempt
boud at valdyas.org
Tue Sep 15 07:36:11 BST 2020
On Monday, 14 September 2020 23:23:39 CEST Phil Thompson wrote:
> The main difference between SIP v4 and v5 is the *addition* of a build
> system, so it's not possible to write a guide to converting from
> something I know nothing about.
Well, it's not complicated. We run a cmake configure_command and build_command on the downloaded sip code:
CONFIGURE_COMMAND ${PYTHON_EXECUTABLE_PATH} <SOURCE_DIR>/configure.py -b ${PREFIX_ext_sip}/bin -d ${PREFIX_ext_sip}/lib/python3.8/site-packages -e ${PREFIX_ext_sip}/include --sipdir ${PREFIX_ext_sip}/sip --target-py-version 3.8 --sip-module PyQt5.sip
BUILD_COMMAND make
For PyQt it's the same:
CONFIGURE_COMMAND ${PYTHON_EXECUTABLE_PATH} <SOURCE_DIR>/configure.py ${_PYQT_conf}
BUILD_COMMAND make
We cannot use any prebuilt binaries because we need to use our own build of Qt.
> There may be improvements that can be made to help projects move to SIP
> v5, but it is up to those projects to identify them.
--
https://www.krita.org
More information about the PyQt
mailing list