On Fri, 16 Aug 2019, Yaroslav Halchenko wrote:
Newer upstream version of fsleyes uses wx.siplib
(ref: https://github.com/pauldmccarthy/fsleyes/issues/29)
build of which is apparently stripped away from the package in Debian:
https://salsa.debian.org/freewx-team/wxpython4.0/blob/master/debian/patches/unbundle-sip.patch
with the name suggeting that it would have its own package but I failed to find
it:
> apt-cache search python wx sip
>
so I guess it never saw a life.
Unfortunately patch also doesn't provide any other details/hints on why
unbundling was needed and how was it handled. So I wondered if just it could
be built/shipped along?
wx.siplib is unbundled for multiple reasons:
1) It is Debian policy to not use bundled code, see [1].
2) The wxPython distribution doesn't include all of the source code for
sip, so it's not possible to build it. The upstream build process for
wxPython downloads a precompiled binary from the internet which is not
allowed in
Debian.
As far as how to address this I can think of a few options:
1) You can patch fsleyes to use the public sip module (provided by the
python3-sip package) instead of the wx.siplib module. In other words, you
would 'import sip' instead of 'import wx.siplib'.
2) I could try to look into providing some sort of wx.siplib wrapper
around the public sip module.
Scott
[1]
https://www.debian.org/doc/debian-policy/ch-source.html#convenience-copies-of-code