[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Upgrading SIP.
From: |
Brendan Tildesley |
Subject: |
Re: Upgrading SIP. |
Date: |
Tue, 23 Feb 2021 10:29:22 +0100 (CET) |
> On 02/22/2021 6:50 PM Ludovic Courtès <ludo@gnu.org> wrote:
>
>
> Hi,
>
> Brendan Tildesley <mail@brendan.scot> skribis:
>
> > Building python-pyqtwebengine, it is unable to find the .sip files needed
> > since it only searches one global path:
> >
> > openat(AT_FDCWD, "QtCore/QtCoremod.sip", O_RDONLY) = -1 ENOENT (No such
> > file or directory)
> > openat(AT_FDCWD,
> > "/tmp/guix-build-python-pyqtwebengine-5.15.2.drv-0/PyQtWebEngine-5.15.2/sip/QtWebEngineCore/QtCore/QtCoremod.sip",
> > O_RDONLY) = -1 ENOENT (No such file or directory)
> > openat(AT_FDCWD,
> > "/tmp/guix-build-python-pyqtwebengine-5.15.2.drv-0/PyQtWebEngine-5.15.2/sip/QtCore/QtCoremod.sip",
> > O_RDONLY) = -1 ENOENT (No such file or directory)
> > openat(AT_FDCWD,
> > "/tmp/guix-build-python-pyqtwebengine-5.15.2.drv-0/PyQtWebEngine-5.15.2/build/bindings/QtCore/QtCoremod.sip",
> > O_RDONLY) = -1 ENOENT (No such file or directory)
> > openat(AT_FDCWD,
> > "/lib/python3.8/site-packages/PyQt5/PyQt5/bindings/QtCore/QtCoremod.sip",
> > O_RDONLY) = -1 ENOENT (No such file or directory)
> > write(2, ".sip-build-real: Unable to find "..., 61.sip-build-real: Unable
> > to find file "QtCore/QtCoremod.sip"
>
> Do you know how Qt (or whatever component is involved) searches for .sip
> files?
>
> Most of the time, there’s a “search path” typically associated with an
> environment variable that we need to set accordingly (like PYTHONPATH,
> GUILE_LOAD_PATH, etc.).
>
> Sometimes, that mechanism doesn’t exist upstream so we end up patching
> the software to add it. This is what was done with OBS for instance,
> and that patch is now upstream.
>
> HTH!
>
> Ludo’.
https://www.riverbankcomputing.com/hg/sip/file/tip/sipbuild/builder.py#l273
There is a sip_include_dirs, but the bit that looks for bindings from other
packages does so by looking in the target directory specified with --target-dir:
# Add any bindings from previously installed packages.
sip_include_dirs.append(
os.path.join(project.target_dir,
project.get_bindings_dir()))
Besides that it looks in current build directory.
Currently I'm looking at updating sip and going back to the configure.py script
to see if i can get that working first.