qbrz appears to depend on sip version 4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qbrz |
Fix Committed
|
High
|
Robert Ladyman |
Bug Description
I'm packaging qbrz for pkgsrc, and when refreshing all my packages, I noticed that "brz qlog" only worked if I also installed the package "py39-sip-4.19.25". Otherwise there would be an error
$ brz qlog
Unable to load plugin 'qbrz' from '/usr/pkg/
brz: ERROR: unknown command "qlog". Perhaps you meant "log"
This is likely because .../site-
# TODO: this might not be necessary now
# RJL to speed development, retain Qt4 for now: use ``sip.setapi`` to request
# version 1 behaviour for ``QVariant`` (otherwise it's not available for python3)
import sip
sip.setapi(
However, sip versions newer than 4 don't have a 'sip' module; instead they have a 'sipbuild' module. If I understand those different versions correctly.
On the other hand, py-Qt5 uses sip version 6 (but maybe doesn't need it at runtime? I'm not sure).
Requiring 2 sip versions isn't very nice; version 4 is quite old and seems to be deprecated; also I suspect it's not needed anyway since the comment above refers to Qt4, which is no longer used.
Related branches
Changed in qbrz: | |
assignee: | nobody → Robert Ladyman (saccadic-masking) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in qbrz: | |
status: | In Progress → Fix Committed |
If I look at the packaging of PyQt5_sip- 12.11.0. tar.gz (used py py-Qt5), there is a
${PYSITELIB} /PyQt5/ sip.so
so maybe that's the one that's wanted by qbrz; but it would need to be imported as PyQt5.sip instead, I expect.