Skip to content

Commit 1327069

Browse files
authored
Merge pull request #1485 from ColCarroll/global_env
Add --global flag to create_testenv for docker build
2 parents ed5245b + 5577f40 commit 1327069

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/create_testenv.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ set -e # fail on first error
44

55
PYTHON_VERSION=${PYTHON_VERSION:-3.5} # if no python specified, use 3.5
66

7-
conda create -n testenv --yes pip python=${PYTHON_VERSION}
8-
9-
source activate testenv
7+
if [[ "$*" != *--global* ]]
8+
then
9+
conda create -n testenv --yes pip python=${PYTHON_VERSION}
10+
source activate testenv
11+
fi
1012

1113
conda install --yes pyqt=4.11.4 jupyter pyzmq numpy scipy nose matplotlib pandas Cython patsy statsmodels joblib coverage
1214
if [ ${PYTHON_VERSION} == "2.7" ]; then

0 commit comments

Comments
 (0)