Skip to content

Commit

Permalink
Use conda prefix env
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Jul 16, 2020
1 parent fcb833c commit c2aa145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/run-pip-tests
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c2aa145

Please sign in to comment.