summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel J. Smith <njs@pobox.com>2012-11-25 21:09:13 +0000
committerNathaniel J. Smith <njs@pobox.com>2012-11-25 21:17:07 +0000
commitf3905dc9fe00382e7ac666bacabc429c8b92d634 (patch)
tree136a82a5f6f6c2c300496bc193841872c02a098a
parent0d593f2aa13ebf865a62a74b9085f554d33b275c (diff)
downloadnumpy-f3905dc9fe00382e7ac666bacabc429c8b92d634.tar.gz
FIX: Use 'pip' for travis build.
Closes gh-2768.
-rw-r--r--.travis.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index d310f8d2a..e1f4bcfe5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -45,7 +45,16 @@ before_install:
- python -V
- popd
install:
- - python setup.py install
+ # We used to use 'setup.py install' here, but that has the terrible
+ # behaviour that if a copy of the package is already installed in
+ # the install location, then the new copy just gets dropped on top
+ # of it. Travis typically has a stable numpy release pre-installed,
+ # and if we don't remove it, then we can accidentally end up
+ # e.g. running old test modules that were in the stable release but
+ # have been removed from master. (See gh-2765, gh-2768.) Using 'pip
+ # install' also has the advantage that it tests that numpy is 'pip
+ # install' compatible, see e.g. gh-2766...
+ - pip install .
script:
# We change directories to make sure that python won't find the copy
# of numpy in the source directory.