summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel J. Smith <njs@pobox.com>2012-09-07 10:57:05 +0100
committerNathaniel J. Smith <njs@pobox.com>2012-09-08 12:46:18 +0100
commit9c9d4bc6d1c8feb3c268b6421fe01f02eebfd3ab (patch)
tree5e6ca586425e2389fd05670cb518b06c0da4cf94
parenta744f3cd24d2ad920f311dc58878a861599bd01b (diff)
downloadnumpy-9c9d4bc6d1c8feb3c268b6421fe01f02eebfd3ab.tar.gz
FIX: use py24-compatible version of virtualenv on Travis
Travis recently upgraded to virtualenv 1.8, which has dropped support for Python 2.4. So, in our Python 2.4 setup script, we need to explicitly fetch and use virtualenv 1.7. Likewise for pip 1.1. File imported from the already-fixed version for patsy: https://github.com/pydata/patsy/blob/0316d2901f4195db06e8091c15f37d9fe4ad09de/.travis-make-py24-virtualenv.sh
-rwxr-xr-x.travis-make-py24-virtualenv.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/.travis-make-py24-virtualenv.sh b/.travis-make-py24-virtualenv.sh
index 625f8b7b7..972e2d26c 100755
--- a/.travis-make-py24-virtualenv.sh
+++ b/.travis-make-py24-virtualenv.sh
@@ -15,4 +15,11 @@ EOF
./configure --prefix=$PWD/install
make
make install
-virtualenv -p install/bin/python2.4 --distribute $VIRTENV
+# This is the last version of virtualenv to support python 2.4:
+curl -O https://raw.github.com/pypa/virtualenv/1.7.2/virtualenv.py
+# And this is the last version of pip to support python 2.4. If
+# there's a file matching "^pip-.*(zip|tar.gz|tar.bz2|tgz|tbz)$" in
+# the current directory then virtualenv will take that as the pip
+# source distribution to install
+curl -O http://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz
+install/bin/python2.4 ./virtualenv.py --distribute $VIRTENV