Bug#964132: qgis: Please switch from sip4 to sip5

Dmitry Shachnev mitya57 at debian.org
Thu Jul 2 18:00:38 BST 2020


Hi Sebastiaan!

On Thu, Jul 02, 2020 at 05:26:28PM +0200, Sebastiaan Couwenberg wrote:
> Dmitry,
>
> Is there a migration guide how to migrate to sip5?

Unfortunately, upstream does not provide any guide. What I wrote is based on
my own experience.

> qgis uses sipconfig to get various bits of information about SIP,
> sipbuild doesn't seem to have the same information available.
>
> https://salsa.debian.org/debian-gis-team/qgis/-/blob/master/cmake/FindSIP.py
> https://salsa.debian.org/debian-gis-team/qgis/-/blob/master/cmake/FindPyQt5.py
>
> I'd appreciate points how to port this to sip5. Otherwise I'll have to
> wait for upstream to add support for sip5.

Pinging upstream is a good first step, thanks for doing it.

From a quick look at FindSIP.py:

- sipcfg.sip_version → sipbuild.version.SIP_VERSION
- sipcfg.sip_version_str → sipbuild.version.SIP_VERSION_STR
- sipcfg.sip_bin → "/usr/bin/sip5"

Not sure if the other variables apply to sip5.

As a side note, sipconfig module that qgis currently uses is deprecated since
at least 2014 :-(

https://www.riverbankcomputing.com/pipermail/pyqt/2014-June/034430.html

I am currently looking at krita (#964126) which uses similar FindSIP.py
and FindPyQt5.py files, I will report back here when I get any success
with it.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20200702/b06d50b8/attachment-0001.sig>


More information about the Pkg-grass-devel mailing list