From 2a079b2d39ea71938912528cbe9d679649bf77b9 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Wed, 27 Jan 2016 21:33:12 +0100 Subject: TST: test installing from sdist on TravisCI. --- tools/travis-test.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tools/travis-test.sh') diff --git a/tools/travis-test.sh b/tools/travis-test.sh index 3de1ca78d..6ed51ee91 100755 --- a/tools/travis-test.sh +++ b/tools/travis-test.sh @@ -71,7 +71,7 @@ setup_chroot() # linux32 python setup.py build # when travis updates to ubuntu 14.04 # - # Numpy may not distinquish between 64 and 32 bit atlas in the + # Numpy may not distinguish between 64 and 32 bit ATLAS in the # configuration stage. DIR=$1 set -u @@ -149,6 +149,19 @@ if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then pip install nose popd run_test +elif [ -n "$USE_SDIST" ] && [ $# -eq 0 ]; then + # use an up-to-date pip / setuptools inside the venv + $PIP install -U virtualenv + $PYTHON setup.py sdist + # Make another virtualenv to install into + virtualenv --python=`which $PYTHON` venv-for-wheel + . venv-for-wheel/bin/activate + # Move out of source directory to avoid finding local numpy + pushd dist + pip install numpy* + pip install nose + popd + run_test elif [ -n "$USE_CHROOT" ] && [ $# -eq 0 ]; then DIR=/chroot setup_chroot $DIR -- cgit v1.2.3