Revert pip cache changes. Use pip's built-in retry.

This commit is contained in:
John Wiggins
2015-08-31 20:26:22 +02:00
parent 05e6c0cb76
commit 8a5cc800cb
4 changed files with 11 additions and 8 deletions
+4 -2
View File
@@ -8,7 +8,9 @@
language: python
sudo: false
cache:
- pip
# See http://docs.travis-ci.com/user/caching/#pip-cache
directories:
- $HOME/.cache/pip
addons:
apt:
packages:
@@ -34,7 +36,7 @@ python:
- 3.4
before_install:
- pip install --upgrade pip
- pip install -U pip
- source tools/travis_before_install.sh
- which python; python --version
+3 -3
View File
@@ -49,7 +49,7 @@ fi
virtualenv -p python ~/venv
source ~/venv/bin/activate
retry pip install -q wheel flake8 coveralls nose
pip install --retries 3 -q wheel flake8 coveralls nose
# on Python 3.2, use matplotlib 1.3.1
if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]; then
@@ -60,9 +60,9 @@ fi
for requirement in $WHEELBINARIES; do
WHEELS="$WHEELS $(grep $requirement requirements.txt)"
done
retry pip install -q $WHEELHOUSE $WHEELS
pip install --retries 3 -q $WHEELHOUSE $WHEELS
retry pip install -q -r requirements.txt
pip install --retries 3 -q -r requirements.txt
section () {
+3 -2
View File
@@ -14,8 +14,9 @@ the yaml file is valid.
set -ex
```
- Use the `retry` bash function from `before_install.sh` before a command to have it try 3 times before
failing (useful for installing from third party sources).
- Use the `retry` bash function from `before_install.sh` before a command to
have it try 3 times before failing.
- Use `pip install --retries N` for retrying package downloads.
- Use the `section` function to start a folded section of the script.
Section names must have underscores or dots instead of spaces and must be
accompanied by a corresponding `section_end` call.
+1 -1
View File
@@ -44,7 +44,7 @@ else
fi
if [[ $PY == 2.* ]]; then
retry pip install -q pyamg
pip install --retries 3 -q pyamg
fi
section_end "Install.optional.dependencies"