Python3 has started shipping multiple pc files so we need to check for all of them similar to lua.

Review Request #832 — Created July 23, 2021 and submitted — Latest diff uploaded

Information

gplugin/gplugin
default
359fa1817f33

Reviewers

Python3 has started shipping multiple pc files so we need to check for all of them similar to lua.

Ran on debian unstable with python3.10 and python3.9 installed. pygobject doesn't current work with python3.10 according to the test output but python3.9 worked fine.

Dependency pygobject-3.0 found: YES 3.38.0 (cached)
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency python-3.10-embed found: YES 3.10
Checking if "Python3 GI" with dependencies glib-2.0, python-3.10-embed, pygobject-3.0 runs: NO (255)
Message: pygobject does not work with python-3.10-embed
Run-time dependency python-3.9-embed found: YES 3.9
Checking if "Python3 GI" with dependencies glib-2.0, python-3.9-embed, pygobject-3.0 runs: YES