From 8fc1cbfc549dc4382eeaed3a36ee1cfb3d374f72 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 20 Feb 2016 15:30:30 -0500 Subject: [PATCH] check for six 1.9.0 --- lbrynet/lbrynet_daemon/scripts/update_lbrynet.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lbrynet/lbrynet_daemon/scripts/update_lbrynet.sh b/lbrynet/lbrynet_daemon/scripts/update_lbrynet.sh index f1672b093..c35723a75 100755 --- a/lbrynet/lbrynet_daemon/scripts/update_lbrynet.sh +++ b/lbrynet/lbrynet_daemon/scripts/update_lbrynet.sh @@ -58,6 +58,17 @@ else echo "rumps already installed..." fi +if ! python -c "import six; exit(0) if six.__version__ == '1.9.0' else exit(1)" &>/dev/null; then + echo "Installing six 1.9.0 for python" + curl -O https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz &>/dev/null + tar xf six-1.9.0.tar.gz &>/dev/null + cd six-1.9.0 + sudo python setup.py install &>/dev/null + cd .. + rm -rf six-1.9.0 + rm six-1.9.0.tar.gz +fi + lbrynet_directory="/Users/${SUDO_USER}/Library/Application Support/lbrynet" lbrynet_current_version=$(git ls-remote https://github.com/lbryio/lbry.git | grep HEAD | cut -f 1)