Skip to content

Commit 74ebfc9

Browse files
committed
Fix Travis CI builds on Python 3.4
Avoid passing -U to pip install commands. It causes the six package to upgrade, which fails on the Travis 3.4 image. I cannot reproduce this locally, so I'm left to conclude that the Travis Python 3.4 image is corrupt in some way. The installed six package is perfectly fine for testing, so use it without upgrading. All builds now pass. Install six package first to avoid upgrading it then downgrading it in some test configurations.
1 parent bd6ee11 commit 74ebfc9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

requirements-install.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/bin/bash -ex
22

3-
pip install -U -r requirements-test.txt
4-
5-
if [[ $USE_OPTIONAL == "true" ]]; then
6-
pip install -U -r requirements-optional.txt
7-
fi
8-
93
if [[ $SIX_VERSION ]]; then
104
pip install six==$SIX_VERSION
115
fi
126

7+
pip install -r requirements-test.txt
8+
9+
if [[ $USE_OPTIONAL == "true" ]]; then
10+
pip install -r requirements-optional.txt
11+
fi
12+
1313
if [[ $CI == "true" ]]; then
14-
pip install -U codecov
14+
pip install codecov
1515
fi

0 commit comments

Comments
 (0)