@@ -113,7 +113,10 @@ before_install:
113
113
brew tap homebrew/gui
114
114
brew install python3 libpng ffmpeg imagemagick mplayer ccache
115
115
# make 'python' mean 'python3'
116
- ln -s /usr/local/bin/python3 /usr/local/bin/python
116
+ ln -sf /usr/local/bin/python3 /usr/local/bin/python
117
+ hash -r
118
+ which python
119
+ python --version
117
120
# We could install ghostscript and inkscape here to test svg and pdf
118
121
# but this makes the test time really long.
119
122
# brew install ghostscript inkscape
@@ -128,10 +131,10 @@ install:
128
131
ccache -s
129
132
git describe
130
133
# Upgrade pip and setuptools and wheel to get as clean an install as possible
131
- pip install --upgrade pip setuptools wheel
134
+ python -mpip install --upgrade pip setuptools wheel
132
135
- |
133
136
# Install dependencies from PyPI
134
- pip install --upgrade $PRE \
137
+ python -mpip install --upgrade $PRE \
135
138
codecov \
136
139
coverage \
137
140
$CYCLER \
@@ -150,22 +153,22 @@ install:
150
153
# install was successful by trying to import the toolkit (sometimes, the
151
154
# install appears to be successful but shared libraries cannot be loaded at
152
155
# runtime, so an actual import is a better check).
153
- pip install cairocffi pgi &&
156
+ python -mpip install cairocffi pgi &&
154
157
python -c 'import pgi as gi; gi.require_version("Gtk", "3.0"); from pgi.repository import Gtk' &&
155
158
echo 'pgi is available' ||
156
159
echo 'pgi is not available'
157
- pip install pyqt5==5.9 &&
160
+ python -mpip install pyqt5==5.9 &&
158
161
python -c 'import PyQt5.QtCore' &&
159
162
echo 'PyQt5 is available' ||
160
163
echo 'PyQt5 is not available'
161
- pip install -U --pre \
164
+ python -mpip install -U --pre \
162
165
--no-index -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-14.04 \
163
166
wxPython &&
164
167
python -c 'import wx' &&
165
168
echo 'wxPython is available' ||
166
169
echo 'wxPython is not available'
167
170
168
- pip install $PRE \
171
+ python -mpip install $PRE \
169
172
$PYTEST \
170
173
$PYTEST_COV \
171
174
pytest-faulthandler \
@@ -178,7 +181,7 @@ install:
178
181
cp ci/travis/setup.cfg .
179
182
- |
180
183
# Install matplotlib
181
- pip install -ve .
184
+ python -mpip install -ve .
182
185
183
186
before_script :
184
187
- |
0 commit comments