Python dependencies are incorrectly installing to a prefix/local/lib path
Overview
I am updating an app from GTK3 to be GTK4 by default. When I build Python dependencies, they are installing to jhbuild/install/local/lib/python3.11/dist-packages
instead of jhbuild/install/lib/python3.11/dist-packages
. This doesn't allow for jhbuild to find built Python dependencies because jhbuild/sitecustomize/sitecustomize.py
is adding Python to the path based on the JHBUILD_PREFIX which adds jhbuild/install/lib/python3.11/dist-package
.
Work Arounds
I was able to get a successful build by overriding the PATH and PYTHONPATH, but this overrides jhbuild setting up these values automatically.
Troubleshooting
I looked at the pkgconfig files, but I am not sure where this /local/lib prefix is coming from. If someone can point me in the right direction, I am glad to help fix this and create a merge request.
My Config
Here is my jhbuildrc:
modules = [
'pycairo',
'pygobject',
'gtk4',
'gtksourceview',
'adwaita-icon-theme',
'hicolor-icon-theme',
'libadwaita',
]
skip = [
'appstream-glib',
'vala',
]
branches['gtk4'] = (None, 'gtk-4-8')
branches['glib'] = (None, 'glib-2-74')
branches['libadwaita'] = (None, 'libadwaita-1-2')
module_autogenargs['librsvg'] = '--enable-vala=no'
mesonargs = '--buildtype=release'
module_mesonargs['gtksourceview'] = '-Dvapi=false --buildtype=release'
module_mesonargs['libadwaita'] = '-Dvapi=false -Dexamples=false -Dtests=false --buildtype=release'
module_mesonargs['gtk4'] = '-Dmedia-gstreamer=disabled -Dprint-cups=disabled --buildtype=release'
module_mesonargs['gdk-pixbuf'] = '-Dman=false --buildtype=release'
module_mesonargs['gobject-introspection'] = '-Dcairo=enabled --buildtype=release'
shallow_clone = True
ignore_suggests = True
use_local_modulesets = True
Environment Info
- OS: Ubuntu 18.04 (Docker image)
- Python: 3.11