Some questions about next versions of SIP

Phil Thompson phil at riverbankcomputing.com
Tue Sep 15 09:27:02 BST 2020


On 15/09/2020 07:36, Boudewijn Rempt wrote:
> 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.

So I need to clarify a previous answer. PyQt5 will not work with SIP v6 
if you are still using configure.py.

Phil


More information about the PyQt mailing list