* Rafael Laboissière <raf...@laboissiere.net> [2021-11-03 16:17]:
At any rate, I could fix the SIP-based PyQt bindings compilation in
Debian, by adding the following to
bindings/qt_gui/pyqt5/pyproject.toml:
[tool.sip.project]
sip-files-dir = "."
sip-include-dirs = ["/usr/lib/python3/dist-packages/PyQt5/bindings"]
This may be a bug in the sip-tools package in Debian and not actually
in PLplot.
Let me just add a comment about the solution above that I am currently
implementing in the Debian package for PLplot.
From the point of view of building the plplot package, what
changed between versions 6.1.1 and 6.3.1 of SIP is the fact that the
PLplot support for SIP/PyQt detects /usr/bin/sip-build as
SIPBUILD_EXECUTABLE in the later but not in the former. This prevents the
execution of the CMake code around the variable PYQT_SIP_DIR. This
variable was previously used in the call "${SIP_EXECUTABLE} [...]
-I${PYQT_SIP_DIR}" in bindings/qt_gui/pyqt5/CMakeLists.txt.
Now, with SIP 6.3.1, /usr/bin/sip-build is used instead of /usr/bin/sip
and the path for QtCore/QtCoremod.sip must be inserted into the file
bindings/qt_gui/pyqt5/pyproject.toml (hence my solution). Note that I
hardcoded the path in the sip-include-dirs configuration variable. This
should be done by substituting the value inside pyproject.toml.
My knowledge of CMake is too limited and I am afraid I cannot propose a
working solution any soon. However, with the diagnosis above, I think
that the PLplot developers can work a proper implementation out.
Best,
Rafael Laboissière
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel