From c2aa1454f363b079ae696d3935cfcf4c794a859f Mon Sep 17 00:00:00 2001 From: HyukjinKwon Date: Thu, 16 Jul 2020 21:54:03 +0900 Subject: [PATCH] Use conda prefix env --- dev/run-pip-tests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/run-pip-tests b/dev/run-pip-tests index 0ee092a175132..bd096089393f8 100755 --- a/dev/run-pip-tests +++ b/dev/run-pip-tests @@ -81,7 +81,7 @@ for python in "${PYTHON_EXECS[@]}"; do source "$CONDA_PREFIX/etc/profile.d/conda.sh" fi conda create -y -p "$VIRTUALENV_PATH" python=$python numpy pandas pip setuptools - if [ -z "$JAVA_HOME" ]; then + if [ -z "$CONDA_PREFIX" ]; then source activate "$VIRTUALENV_PATH" else conda activate "$VIRTUALENV_PATH" @@ -129,7 +129,7 @@ for python in "${PYTHON_EXECS[@]}"; do # conda / virtualenv environments need to be deactivated differently if [ -n "$USE_CONDA" ]; then - if [ -z "$JAVA_HOME" ]; then + if [ -z "$CONDA_PREFIX" ]; then source deactivate else conda deactivate