Skip to content

Commit 2cac22c

Browse files
committed
TST: use python -mpip instead of pip
1 parent 579726c commit 2cac22c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.travis.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ before_install:
113113
brew tap homebrew/gui
114114
brew install python3 libpng ffmpeg imagemagick mplayer ccache
115115
# 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
117120
# We could install ghostscript and inkscape here to test svg and pdf
118121
# but this makes the test time really long.
119122
# brew install ghostscript inkscape
@@ -128,10 +131,10 @@ install:
128131
ccache -s
129132
git describe
130133
# 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
132135
- |
133136
# Install dependencies from PyPI
134-
pip install --upgrade $PRE \
137+
python -mpip install --upgrade $PRE \
135138
codecov \
136139
coverage \
137140
$CYCLER \
@@ -150,22 +153,22 @@ install:
150153
# install was successful by trying to import the toolkit (sometimes, the
151154
# install appears to be successful but shared libraries cannot be loaded at
152155
# runtime, so an actual import is a better check).
153-
pip install cairocffi pgi &&
156+
python -mpip install cairocffi pgi &&
154157
python -c 'import pgi as gi; gi.require_version("Gtk", "3.0"); from pgi.repository import Gtk' &&
155158
echo 'pgi is available' ||
156159
echo 'pgi is not available'
157-
pip install pyqt5==5.9 &&
160+
python -mpip install pyqt5==5.9 &&
158161
python -c 'import PyQt5.QtCore' &&
159162
echo 'PyQt5 is available' ||
160163
echo 'PyQt5 is not available'
161-
pip install -U --pre \
164+
python -mpip install -U --pre \
162165
--no-index -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-14.04 \
163166
wxPython &&
164167
python -c 'import wx' &&
165168
echo 'wxPython is available' ||
166169
echo 'wxPython is not available'
167170
168-
pip install $PRE \
171+
python -mpip install $PRE \
169172
$PYTEST \
170173
$PYTEST_COV \
171174
pytest-faulthandler \
@@ -178,7 +181,7 @@ install:
178181
cp ci/travis/setup.cfg .
179182
- |
180183
# Install matplotlib
181-
pip install -ve .
184+
python -mpip install -ve .
182185
183186
before_script:
184187
- |

0 commit comments

Comments
 (0)