HyukjinKwon commented on a change in pull request #29057: URL: https://github.com/apache/spark/pull/29057#discussion_r452249751
########## File path: dev/run-pip-tests ########## @@ -76,8 +76,12 @@ for python in "${PYTHON_EXECS[@]}"; do VIRTUALENV_PATH="$VIRTUALENV_BASE"/$python rm -rf "$VIRTUALENV_PATH" if [ -n "$USE_CONDA" ]; then + if [ -f "$CONDA_PREFIX/etc/profile.d/conda.sh" ]; then + # See also https://github.com/conda/conda/issues/7980 + source $CONDA_PREFIX/etc/profile.d/conda.sh + fi conda create -y -p "$VIRTUALENV_PATH" python=$python numpy pandas pip setuptools - source activate "$VIRTUALENV_PATH" + conda activate "$VIRTUALENV_PATH" Review comment: `conda activate` seems the recommended way, https://docs.conda.io/projects/conda/en/latest/release-notes.html#id203 > With conda 4.4, conda activate and conda deactivate are now the preferred commands for activating and deactivating environments. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org