From 5577f404a52b1601416e211fedc9cb88cc4d780a Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 27 Oct 2016 19:43:53 -0400 Subject: [PATCH] Add --global flag to create_testenv for docker build --- scripts/create_testenv.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/create_testenv.sh b/scripts/create_testenv.sh index 736e164c05..29c5e7f568 100755 --- a/scripts/create_testenv.sh +++ b/scripts/create_testenv.sh @@ -4,9 +4,11 @@ set -e # fail on first error PYTHON_VERSION=${PYTHON_VERSION:-3.5} # if no python specified, use 3.5 -conda create -n testenv --yes pip python=${PYTHON_VERSION} - -source activate testenv +if [[ "$*" != *--global* ]] +then + conda create -n testenv --yes pip python=${PYTHON_VERSION} + source activate testenv +fi conda install --yes pyqt=4.11.4 jupyter pyzmq numpy scipy nose matplotlib pandas Cython patsy statsmodels joblib coverage if [ ${PYTHON_VERSION} == "2.7" ]; then