File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,20 @@ install:
123
123
pyparsing!=2.1.6 \
124
124
python-dateutil \
125
125
sphinx
126
- # GUI toolkits are pip-installable only for some versions of Python so don't
127
- # fail if we can't install them.
128
- pip install pyqt5 || true
129
- python -c 'import PyQt5.QtCore' || true
126
+ # GUI toolkits are pip-installable only for some versions of Python so
127
+ # don't fail if we can't install them. Make it easier to check whether the
128
+ # install was successful by trying to import the toolkit (sometimes, the
129
+ # install appears to be successful but shared libraries cannot be loaded at
130
+ # runtime, so an actual import is a better check).
131
+ pip install pyqt5 &&
132
+ python -c 'import PyQt5.QtCore' ||
133
+ true
134
+ pip install -U --pre \
135
+ -f https://wxpython.org/Phoenix/release-extras/linux/gtk3/ubuntu-14.04 \
136
+ wxPython &&
137
+ python -c 'import wx' ||
138
+ true
139
+
130
140
if [[ $BUILD_DOCS == true ]]; then
131
141
pip install $PRE -r doc-requirements.txt
132
142
fi
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ def _get_available_backends():
29
29
reason = "Could not import {!r}" .format (module_name ))(backend )
30
30
for module_name , backend in [
31
31
("PyQt5" , "qt5agg" ),
32
- ("tkinter" , "tkagg" )]]
32
+ ("tkinter" , "tkagg" ),
33
+ ("wx" , "wxagg" )]]
33
34
34
35
35
36
_test_script = """\
You can’t perform that action at this time.
0 commit comments