tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

the state of py-sip



Background: py-sip (4) is getting crufty, and doesn't work with 3.11.

Besides py-sip, there is py-qt5, which uses sip (4) to make qt5 bindings.
There is then py-sip5, and wip/py-qt5, which uses sip (5).

Finally there is wip/py-sip6, for sip 6, but I'm not trying to deal with
6 yet.

It seems that sip 4/5/6 have some degree of API incompatibilty.

Now that qgis is at 3.28.1, and qgis upstream says it works with sip5:

  * for python support - SIP >= 4.12, PyQt >= 5.3 must match Qt version, Qscintilla2

I am seeing if I can migrate qgis to use py-sip5.  However, qgis also
depends on py-qt5, and that uses sip4.  The qgis build gets pretty far
along, and the error might be a clue that a mixed sip4/sip5 build is not
ok, or it might be something else, such as qgis needing sip4.


  [ 85%] Generating core/build/_core/sip_corepart0.cpp, core/build/_core/sip_corepart1.cpp, core/build/_core/sip_corepart2.cpp, core/build/_core/sip_corepart3.cpp, core/build/_core/sip_corepart4.cpp, core/build/_core/sip_corepart5.cpp, core/build/_core/sip_corepart6.cpp, core/build/_core/sip_corepart7.cpp, core/build/_core/sip_corepart8.cpp, core/build/_core/sip_corepart9.cpp, core/build/_core/sip_corepart10.cpp, core/build/_core/sip_corepart11.cpp, core/build/_core/sip_corepart12.cpp, core/build/_core/sip_corepart13.cpp, core/build/_core/sip_corepart14.cpp, core/build/_core/sip_corepart15.cpp, core/build/_core/sip_corepart16.cpp, core/build/_core/sip_corepart17.cpp, core/build/_core/sip_corepart18.cpp, core/build/_core/sip_corepart19.cpp

  sip-build: Unable to import 'project.py': No module named 'pyqtbuild'
  gmake[2]: *** [python/CMakeFiles/python_module_qgis__core.dir/build.make:815: python/core/build/_core/sip_corepart0.cpp] Error 1
  gmake[1]: *** [CMakeFiles/Makefile2:8182: python/CMakeFiles/python_module_qgis__core.dir/all] Error 2
  gmake: *** [Makefile:166: all] Error 2
  *** Error code 2

Any sip wisdom would be appreciated.

(I am not trying to make anything scary happen pre-branch; python 3.11
has just barely arrived and lots of packages don't support it yet, and I
think that's ok for pkgsrc.  I decline to tilt at the windmill that is
the python world.)

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index