meson: make error messages a bit more accurate on what was tested.

As a follow-up of the previous INSTALL update (complement for #16115).
This commit is contained in:
Jehan 2026-03-27 17:33:01 +01:00
parent c039f82640
commit 91f78f58c4

View file

@ -1234,12 +1234,12 @@ foreach py : py_candidates
endforeach
if not python.found() or not python.language_version().version_compare(python3_minver)
error('No suitable Python installation found. Minimum supported version: @0@'.format(python3_minver))
error('No suitable Python installation (with cairo and gi modules) found. Minimum supported version: @0@'.format(python3_minver))
endif
message('Found Python @0@'.format(python.language_version()))
if pygobject_found.returncode() != 0 or not pygobject_found.stdout().strip().version_compare(pygobject_minver) or not pygobject_gexiv2_found
error('No suitable PyGObject (with Pycairo and Gexiv2 modules) found. Minimum supported version: @0@'.format(pygobject_minver))
error('No suitable PyGObject (with GExiv2 submodule) found. Minimum supported version: @0@'.format(pygobject_minver))
endif
message('Found PyGObject: @0@'.format(pygobject_found.stdout().strip()))