From c94996e8e876c206c4193160e51c74bdc37764cf Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 19 Dec 2021 16:06:49 +0000 Subject: [PATCH 1/2] build: Check for the gi python module The introspection tests depend on the pygobject module, but we currently are not checking if it's available at configuration time, which means we can get build failures like: > ModuleNotFoundError: No module named 'gi' when running the test suite. --- testsuite/introspection/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/testsuite/introspection/meson.build b/testsuite/introspection/meson.build index 6202fb7446..647150055c 100644 --- a/testsuite/introspection/meson.build +++ b/testsuite/introspection/meson.build @@ -1,3 +1,4 @@ +py = import('python').find_installation('python3', modules: ['gi']) test('api', find_program('api.py', dirs: meson.current_source_dir()), From d40321ef63ad5912d1c0ff3e5c5273eef342dbe7 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 19 Dec 2021 16:26:37 +0000 Subject: [PATCH 2/2] ci: Add pygobject to the MSYS2 job --- .gitlab-ci/test-msys2.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/test-msys2.sh b/.gitlab-ci/test-msys2.sh index 4c59a26a9d..0c61ad3b72 100644 --- a/.gitlab-ci/test-msys2.sh +++ b/.gitlab-ci/test-msys2.sh @@ -31,7 +31,8 @@ pacman --noconfirm -S --needed \ mingw-w64-$MSYS2_ARCH-pango \ mingw-w64-$MSYS2_ARCH-fribidi \ mingw-w64-$MSYS2_ARCH-gst-plugins-bad \ - mingw-w64-$MSYS2_ARCH-shared-mime-info + mingw-w64-$MSYS2_ARCH-shared-mime-info \ + mingw-w64-$MSYS2_ARCH-python-gobject mkdir -p _ccache export CCACHE_BASEDIR="$(pwd)"