8000 FIX: use py24-compatible version of virtualenv on Travis · numpy/numpy@fcacdcc · GitHub
[go: up one dir, main page]

Skip to content

Commit fcacdcc

Browse files
njsmithcertik
authored andcommitted
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
1 parent d01354e commit fcacdcc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis-make-py24-virtualenv.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@ EOF
1515
./configure --prefix=$PWD/install
1616
make
1717
make install
18-
virtualenv -p install/bin/python2.4 --distribute $VIRTENV
18+
# This is the last version of virtualenv to support python 2.4:
19+
curl -O https://raw.github.com/pypa/virtualenv/1.7.2/virtualenv.py
20+
# And this is the last version of pip to support python 2.4. If
21+
# there's a file matching "^pip-.*(zip|tar.gz|tar.bz2|tgz|tbz)$" in
22+
# the current directory then virtualenv will take that as the pip
23+
# source distribution to install
24+
curl -O http://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz
25+
install/bin/python2.4 ./virtualenv.py --distribute $VIRTENV

0 commit comments

Comments
 (0)
0