From 4309d4723960305a3080ac239328a28d51fe18b4 Mon Sep 17 00:00:00 2001 From: Josh Warner Date: Thu, 13 Aug 2015 17:39:25 -0500 Subject: [PATCH] FIX: Require networkx 1.9.1 for the 2.6 build --- tools/travis_before_install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/travis_before_install.sh b/tools/travis_before_install.sh index b146125e..fce0a367 100755 --- a/tools/travis_before_install.sh +++ b/tools/travis_before_install.sh @@ -32,6 +32,11 @@ retry () { # add build dependencies echo "cython>=0.21" >> requirements.txt +# require networkx 1.9.1 on 2.6, as 2.6 support was dropped in 1.10 +if [[ $TRAVIS_PYTHON_VERSION == 2.6* ]]; then + sed -i 's/networkx.*/networkx==1.9.1/g' requirements.txt +fi + # test minimum requirements on 2.7 if [[ $TRAVIS_PYTHON_VERSION == 2.7* ]]; then sed -i 's/>=/==/g' requirements.txt