Building QScintilla Python bindings from source

Davide Pesavento pesa at gentoo.org
Fri Jun 25 00:33:36 BST 2021


On Thu, Jun 24, 2021 at 10:16 AM Phil Thompson
<phil at riverbankcomputing.com> wrote:
>
> On 24/06/2021 09:03, Phil Thompson wrote:
> > On 24/06/2021 05:34, Davide Pesavento wrote:
> >> Hi,
> >>
> >> I'm trying to build the python bindings for QScintilla v2.12.1 from
> >> source on Linux and facing several issues. I'm using sip 6.1.1,
> >> PyQt-builder 1.10.1, Qt 5.15.2, PyQt 5.15.4. I already compiled the
> >> QScintilla C++ library against Qt 5 and installed it system-wide.
> >>
> >> 1/ The first issue is that sip-build cannot find QtCoremod.sip
> >> out-of-the-box.
> >>
> >> $ sip-build --no-make --verbose
> >> Querying qmake about your Qt installation...
> >> /usr/bin/qmake -query
> >> These bindings will be built: Qsci.
> >> Generating the Qsci bindings...
> >> sip-build: Unable to find file "QtCore/QtCoremod.sip"
> >>
> >> I was able to fix this by adding the following two lines to
> >> pyproject.toml:
> >>
> >> [tool.sip.project]
> >> sip-include-dirs = ["/usr/share/sip/PyQt5"]
> >
> > ...so you need to fix this properly. There is some sort of problem
> > with your installation of the build tools, probably PyQt-builder.
>
> Actually, if your fix above finds the .sip files then you have an
> unconventional PyQt5 installation.
>

PyQt5 is built/installed using configure.py (not PyQt-builder) and I'm
not passing any special command-line options to change the
installation dir of the .sip files.

So what is the built-in search path for .sip files?

Thanks,
Davide


More information about the QScintilla mailing list