Skip to content

Commit

Permalink
install binaries -> then resolve deps
Browse files Browse the repository at this point in the history
requirements.txt should hold all dependencies all deps are not in wheel house

- first install binaries from wheel house
- then install the rest of the deps
  • Loading branch information
arve0 committed May 25, 2015
1 parent bf31af6 commit c52dc41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/travis_before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sh -e /etc/init.d/xvfb start
export DISPLAY=:99.0
export PYTHONWARNINGS="all"
export TEST_ARGS="--exe --ignore-files=^_test -v --with-doctest --ignore-files=^setup.py$"
export WHEELBINARIES="matplotlib numpy scipy pillow cython"


retry () {
Expand Down Expand Up @@ -36,6 +37,7 @@ if [[ $TRAVIS_PYTHON_VERSION == 2.7* ]]; then
sed -i 's/cython>=/cython==/g' requirements.txt
sed -i 's/networkx>=/networkx==/g' requirements.txt
sed -i '/pillow/d' requirements.txt
export WHEELBINARIES=${WHEELBINARIES/pillow/}
else
virtualenv -p python --system-site-packages ~/venv
fi
Expand All @@ -52,9 +54,8 @@ if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]; then
sed -i 's/matplotlib>=*.*.*/matplotlib==1.3.1/g' requirements.txt
fi

retry pip install $WHEELHOUSE -r requirements.txt

pip install 'dask[array]>=0.5.0'
retry pip install $WHEELHOUSE $WHEELBINARIES
retry pip install -r requirements.txt

# clean up disk space
sudo apt-get clean
Expand Down

0 comments on commit c52dc41

Please sign in to comment.