PyGObject-3.54.5

Introduction to PyGObject3 Module

PyGObject3 provides Python bindings to the GObject class from GLib.

This package is known to build and work properly using an LFS 12.4 platform.

Package Information

PyGObject3 Dependencies

Required

GLib-2.86.2 (with GObject Introspection)

Recommended

Optional (for the tests)

"GTK4", pep8, pyflakes, and "pytest"

Installation of PyGObject3

Prepare pygobject3 by running the following commands:

First, if you do not have "gtk4" installed, remove two tests:

mv -v tests/test_gdbus.py{,.nouse}
mv -v tests/test_overrides_gtk.py{,.nouse}
meson setup build --prefix=/usr --buildtype=release
ninja -C build
[Note]

Note

An already active graphical session with a bus address is necessary to run the tests. To test the results, issue:

ninja -C build test

Now Install the package, as the root user:

ninja -C build install

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

-D pycairo=disabled: use this switch if you do not have PyCairo-1.28.0 installed.

Contents

Installed Programs: None
Installed Library: /usr/lib/python3.14/site-packages/gi/_gi{,_cairo}.cpython-314-x86_64-linux-gnu.so
Installed Directories: /usr/include/pygobject-3.0 and /usr/lib/python3.14/site-packages/{gi,pygtkcompat}