@@ -133,19 +133,28 @@ install:
133
133
# install was successful by trying to import the toolkit (sometimes, the
134
134
# install appears to be successful but shared libraries cannot be loaded at
135
135
# runtime, so an actual import is a better check).
136
- python -mpip install --upgrade pycairo cairocffi>=0.8
137
- python -mpip install --upgrade PyGObject &&
138
- python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
139
- echo 'PyGObject is available' ||
140
- echo 'PyGObject is not available'
141
- python -mpip install --upgrade pyqt5 &&
142
- python -c 'import PyQt5.QtCore' &&
143
- echo 'PyQt5 is available' ||
144
- echo 'PyQt5 is not available'
145
- python -mpip install --upgrade pyside2 &&
146
- python -c 'import PySide2.QtCore' &&
147
- echo 'PySide2 is available' ||
148
- echo 'PySide2 is not available'
136
+
137
+ # PyGObject, pycairo, and cariocffi do not install on OSX 10.12
138
+
139
+ # There are not functioning wheels available for OSX 10.12 (as of
140
+ # Sept 2020) for either pyqt5 (there are only wheels for 10.13+)
141
+ # or pyside2 (the latest version (5.13.2) with 10.12 wheels has a
142
+ # fatal to us bug, it was fixed in 5.14.0 which has 10.13 wheels)
143
+ if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
144
+ python -mpip install --upgrade pycairo cairocffi>=0.8
145
+ python -mpip install --upgrade PyGObject &&
146
+ python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
147
+ echo 'PyGObject is available' ||
148
+ echo 'PyGObject is not available'
149
+ python -mpip install --upgrade pyqt5 &&
150
+ python -c 'import PyQt5.QtCore' &&
151
+ echo 'PyQt5 is available' ||
152
+ echo 'PyQt5 is not available'
153
+ python -mpip install --upgrade pyside2 &&
154
+ python -c 'import PySide2.QtCore' &&
155
+ echo 'PySide2 is available' ||
156
+ echo 'PySide2 is not available'
157
+ fi
149
158
python -mpip install --upgrade \
150
159
-f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 \
151
160
wxPython &&
0 commit comments