From 8da10f670b3043a1582413f90925dbef069cda4b Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 12 May 2017 00:01:06 -0700 Subject: [PATCH] Only install tox in dev mode (#7557) --- script/bootstrap_frontend | 2 +- script/bootstrap_server | 20 ++------------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/script/bootstrap_frontend b/script/bootstrap_frontend index e1d4ef887be..0efe2e3584d 100755 --- a/script/bootstrap_frontend +++ b/script/bootstrap_frontend @@ -1,5 +1,5 @@ #!/bin/sh -# Resolve all frontend dependencies that the application requires to run. +# Resolve all frontend dependencies that the application requires to develop. # Stop on errors set -e diff --git a/script/bootstrap_server b/script/bootstrap_server index 633a3498b52..7929a00fe55 100755 --- a/script/bootstrap_server +++ b/script/bootstrap_server @@ -1,26 +1,10 @@ #!/bin/sh -# Resolve all server dependencies that the application requires to run. +# Resolve all server dependencies that the application requires to develop. # Stop on errors set -e cd "$(dirname "$0")/.." -# Some requirements use parameter --only-binary only available -# in pip 7+. Upgrade if necessary. -if ! python3 -c 'import pkg_resources ; pkg_resources.require(["pip>=7.0.0"])' 2>/dev/null ; then - echo "Upgrading pip..." - python3 -m pip install -U pip -fi - echo "Installing test dependencies..." -python3 -m pip install -r requirements_test_all.txt - -REQ_DEV_STATUS=$? - -if [ $REQ_DEV_STATUS -eq 0 ] -then - exit $REQ_STATUS -else - exit $REQ_DEV_STATUS -fi +python3 -m pip install tox