File tree 2 files changed +24
-13
lines changed
2 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,22 @@ 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
+ echo 'PyQt5 is available' ||
134
+ echo 'PyQt5 is not available'
135
+ pip install -U --pre \
136
+ -f https://wxpython.org/Phoenix/release-extras/linux/gtk3/ubuntu-14.04 \
137
+ wxPython &&
138
+ python -c 'import wx' &&
139
+ echo 'wxPython is available' ||
140
+ echo 'wxPython is not available'
141
+
130
142
if [[ $BUILD_DOCS == true ]]; then
131
143
pip install $PRE -r doc-requirements.txt
132
144
fi
Original file line number Diff line number Diff line change 20
20
21
21
22
22
def _get_available_backends ():
23
- if sys .version_info < (3 ,):
24
- return []
25
- else :
26
- return [
27
- pytest .mark .skipif (
28
- importlib .util .find_spec (module_name ) is None ,
29
- reason = "Could not import {!r}" .format (module_name ))(backend )
30
- for module_name , backend in [
23
+ return [
24
+ pytest .mark .skipif (sys .version_info < (3 ,)
25
+ or importlib .util .find_spec (module_name ) is None ,
26
+ reason = "Could not import {!r}" .format (module_name ))(
27
+ backend )
28
+ for module_name , backend in [
31
29
("PyQt5" , "qt5agg" ),
32
- ("tkinter" , "tkagg" )]]
30
+ ("tkinter" , "tkagg" ),
31
+ ("wx" , "wxagg" )]]
33
32
34
33
35
34
_test_script = """\
You can’t perform that action at this time.
0 commit comments