Bug#964127: plplot: Please switch from sip4 to sip5

Rafael Laboissière rafael at debian.org
Mon Nov 30 13:25:43 GMT 2020


* Dmitry Shachnev <mitya57 at debian.org> [2020-11-30 13:52]:

> On Mon, Nov 30, 2020 at 09:32:06AM +0100, Rafael Laboissière wrote:
>> The following succeeds:
>>
>>  cd <build_dir>/obj-x86_64-linux-gnu/bindings/qt_gui/pyqt5 &&
>> /usr/bin/sip5 -c . -I/usr/lib/python3/dist-packages/PyQt5/bindings 
>> -n PyQt5.sip -t Qt_5_14_0 -t WS_X11 
>> <build_dir>/bindings/qt_gui/pyqt5/plplot_pyqt5.sip
>
> Please note that upstream is going to remove the sip5 script in SIP v6, which 
> will be released in a few months:
>
> https://www.riverbankcomputing.com/static/Docs/sip/legacy_command_line_tools.html
>
> So it would be better to switch to the completely new build system that was 
> introduced in SIP v5:
>
> https://www.riverbankcomputing.com/static/Docs/sip/examples.html
>
> Here are two examples of projects that I converted to the new build system:
>
>  https://github.com/frescobaldi/python-poppler-qt5/pull/41
>  https://github.com/GauiStori/PyQt-Qwt/pull/14

This is something that must be done upstream, isn't it?  As a Debian 
developer with zero knowledge about Qt, I am not really willing to 
replace the upstream authors in this development.

If you are willing to prepare a patch for the plplot package, I would 
gladly integrate it and forward it to the upstream authors.

>> I only changed “-t Qt_5_15_0” to “-t Qt_5_14_0”.  It looks like there is 
>> something hardcoding my build above to Qt version 5.14.
>
> Can you check what the module-tags are in 
> /usr/lib/python3/dist-packages/PyQt5/bindings/QtCore/QtCore.toml?
>
> If it says 5.14, make sure you have the latest pyqt5-dev package installed.

I have here:

     $ dpkg -l pyqt5-dev | grep ^ii
     ii  pyqt5-dev      5.15.1+dfsg-2 all          Development files for PyQt5
     $ grep module-tags /usr/lib/python3/dist-packages/PyQt5/bindings/QtCore/QtCore.toml
     module-tags = ["Qt_5_14_0", "WS_X11"]

Is that normal? AFAICT, 5.15.1+dfsg-2 is the latest version of pyqt5-dev…

Best,

Rafael Laboissière



More information about the debian-science-maintainers mailing list