@@ -78,6 +78,34 @@ stages:
78
78
python -m pip install -r requirements/testing/all.txt -r requirements/testing/extra.txt
79
79
displayName: 'Install dependencies with pip'
80
80
81
+ - bash : |
82
+ # GUI toolkits are pip-installable only for some versions of Python so don't fail if we can't install
83
+ # them. Make it easier to check whether the install was successful by trying to import the toolkit
84
+ # (sometimes, the install appears to be successful but shared libraries cannot be loaded at runtime, so
85
+ # an actual import is a better check).
86
+ python -m pip install --upgrade pycairo cairocffi>=0.8
87
+ python -m pip install --upgrade PyGObject &&
88
+ (
89
+ python -c 'import gi; gi.require_version("Gtk", "4.0"); from gi.repository import Gtk' &&
90
+ echo 'PyGObject 4 is available' || echo 'PyGObject 4 is not available'
91
+ ) && (
92
+ python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
93
+ echo 'PyGObject 3 is available' || echo 'PyGObject 3 is not available'
94
+ )
95
+ python -m pip install --upgrade pyqt5 &&
96
+ python -c 'import PyQt5.QtCore' &&
97
+ echo 'PyQt5 is available' ||
98
+ echo 'PyQt5 is not available'
99
+ python -m pip install --upgrade pyside2 &&
100
+ python -c 'import PySide2.QtCore' &&
101
+ echo 'PySide2 is available' ||
102
+ echo 'PySide2 is not available'
103
+ python -m pip install --upgrade --only-binary :all: wxPython &&
104
+ python -c 'import wx' &&
105
+ echo 'wxPython is available' ||
106
+ echo 'wxPython is not available'
107
+ displayName: 'Install GUI dependencies with pip'
108
+
81
109
- bash : |
82
110
CONFIG='--config-settings=setup-args=--vsenv'
83
111
CONFIG="$CONFIG --config-settings=setup-args=-Dcpp_link_args=-PROFILE"
0 commit comments