Skip to content

Commit 7dd57d2

Browse files
committed
Add workaround for Travis
1 parent e327ea1 commit 7dd57d2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ python:
77
- 3.2
88

99
install:
10-
- pip install --use-mirrors nose numpy
10+
- pip install --use-mirrors nose
11+
# This is a workaround to install numpy with the version of
12+
# virtualenv in Travis. If that is updated in the future, this can
13+
# be simplified to 'pip install numpy'
14+
- 'if [ $TRAVIS_PYTHON_VERSION == "3.2" ] || [ $TRAVIS_PYTHON_VERSION == "3.1" ]; then pip install https://github.com/y-p/numpy/archive/1.6.2_with_travis_fix.tar.gz; fi'
15+
- 'if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install numpy; fi' # should be nop if pre-installed
1116
- if [[ $TRAVIS_PYTHON_VERSION == '2.'* ]]; then pip install --use-mirrors PIL; fi
1217
- python setup.py install
1318

0 commit comments

Comments
 (0)