@@ -149,7 +149,7 @@ jobs:
149
149
macOS)
150
150
brew install ccache
151
151
brew tap homebrew/cask-fonts
152
- brew install font-noto-sans-cjk
152
+ brew install font-noto-sans-cjk gobject-introspection gtk4
153
153
;;
154
154
esac
155
155
@@ -226,10 +226,14 @@ jobs:
226
226
# libraries cannot be loaded at runtime, so an actual import is a
227
227
# better check).
228
228
# PyGObject, pycairo, and cariocffi do not install on OSX 10.12.
229
- python -m pip install --upgrade pycairo 'cairocffi>=0.8' PyGObject &&
230
- python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
231
- echo 'PyGObject is available' ||
232
- echo 'PyGObject is not available'
229
+ python -m pip install --upgrade pycairo 'cairocffi>=0.8' PyGObject &&
230
+ (
231
+ python -c 'import gi; gi.require_version("Gtk", "4.0"); from gi.repository import Gtk' &&
232
+ echo 'PyGObject 4 is available' || echo 'PyGObject 4 is not available'
233
+ ) && (
234
+ python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
235
+ echo 'PyGObject 3 is available' || echo 'PyGObject 3 is not available'
236
+ )
233
237
234
238
# There are no functioning wheels available for OSX 10.12 (as of
235
239
# Sept 2020) for either pyqt5 (there are only wheels for 10.13+) or