Apache DataFusion SQL Query Engine
ARROW-2974: [Python] Replace usages of "source activate" with "conda activate" in CI scripts
Krisztián Szűcse907773e63a5
diff --git a/ci/travis_before_script_c_glib.sh b/ci/travis_before_script_c_glib.shindex 3a61aac8df..d9aec19ab4 100755--- a/ci/travis_before_script_c_glib.sh+++ b/ci/travis_before_script_c_glib.sh@@ -22,7 +22,12 @@ set -exsource $TRAVIS_BUILD_DIR/ci/travis_env_common.shsource $TRAVIS_BUILD_DIR/ci/travis_install_conda.sh-pip install meson++conda create -n meson -y -q python=3.6+conda activate meson++# ARROW-3186: meson 0.47.2 issues+pip install meson==0.47.1if [ $TRAVIS_OS_NAME = "osx" ]; thenexport PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfigdiff --git a/ci/travis_env_common.sh b/ci/travis_env_common.shindex 5e4fe2522e..78a8996661 100755--- a/ci/travis_env_common.sh+++ b/ci/travis_env_common.sh@@ -20,7 +20,6 @@# hide nodejs experimental-feature warningsexport NODE_NO_WARNINGS=1export MINICONDA=$HOME/miniconda-export PATH="$MINICONDA/bin:$PATH"export CONDA_PKGS_DIRS=$HOME/.conda_packagesexport ARROW_CPP_DIR=$TRAVIS_BUILD_DIR/cppdiff --git a/ci/travis_install_conda.sh b/ci/travis_install_conda.shindex de4a7ac610..ade6392ce2 100755--- a/ci/travis_install_conda.sh+++ b/ci/travis_install_conda.sh@@ -29,10 +29,13 @@ function download_miniconda() {wget --no-verbose -O miniconda.sh $MINICONDA_URL}+export MINICONDA=$HOME/miniconda+export CONDA_PKGS_DIRS=$HOME/.conda_packages-if (! which conda > /dev/null ); then-- source $TRAVIS_BUILD_DIR/ci/travis_env_common.sh+# If miniconda is installed already, run the activation script+if [ -d "$MINICONDA" ]; then+ source $MINICONDA/etc/profile.d/conda.sh+elsemkdir -p $CONDA_PKGS_DIRSCONDA_RETRIES=5@@ -53,7 +56,7 @@ if (! which conda > /dev/null ); thenfibash miniconda.sh -b -p $MINICONDA- export PATH="$MINICONDA/bin:$PATH"+ source $MINICONDA/etc/profile.d/conda.shconda update -y -q condaconda config --set auto_update_conda falsediff --git a/ci/travis_script_integration.sh b/ci/travis_script_integration.shindex 8c6da38e1e..286acacd74 100755--- a/ci/travis_script_integration.sh+++ b/ci/travis_script_integration.sh@@ -44,7 +44,7 @@ pushd $ARROW_INTEGRATION_DIRCONDA_ENV_NAME=arrow-integration-testconda create -y -q -n $CONDA_ENV_NAME python=3.5-source activate $CONDA_ENV_NAME+conda activate $CONDA_ENV_NAME# faster builds, pleaseconda install -y nomkl@@ -63,4 +63,4 @@ popd# Uncomment to upload to coveralls# cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js;-# popd\ No newline at end of file+# popddiff --git a/ci/travis_script_manylinux.sh b/ci/travis_script_manylinux.shindex 9ea15e7902..386a68488a 100755--- a/ci/travis_script_manylinux.sh+++ b/ci/travis_script_manylinux.sh@@ -37,7 +37,7 @@ PYTHON_VERSION=3.6CONDA_ENV_DIR=$TRAVIS_BUILD_DIR/pyarrow-test-$PYTHON_VERSIONconda create -y -q -p $CONDA_ENV_DIR python=$PYTHON_VERSION-source activate $CONDA_ENV_DIR+conda activate $CONDA_ENV_DIRpip install -q tensorflowpip install "dist/`ls dist/ | grep cp36`"diff --git a/ci/travis_script_python.sh b/ci/travis_script_python.shindex 46dad80ff9..1f774dad5a 100755--- a/ci/travis_script_python.sh+++ b/ci/travis_script_python.sh@@ -33,7 +33,7 @@ PYTHON_VERSION=$1CONDA_ENV_DIR=$TRAVIS_BUILD_DIR/pyarrow-test-$PYTHON_VERSIONconda create -y -q -p $CONDA_ENV_DIR python=$PYTHON_VERSION cmake curl-source activate $CONDA_ENV_DIR+conda activate $CONDA_ENV_DIRpython --versionwhich python@@ -186,7 +186,7 @@ if [ "$ARROW_TRAVIS_PYTHON_BENCHMARKS" == "1" ] && [ "$PYTHON_VERSION" == "3.6"# (see https://github.com/airspeed-velocity/asv/issues/449)source deactivateconda create -y -q -n pyarrow_asv python=$PYTHON_VERSION- source activate pyarrow_asv+ conda activate pyarrow_asvpip install -q git+https://github.com/pitrou/asv.git@customize_commandsexport PYARROW_WITH_PARQUET=1diff --git a/dev/container/script/env.sh b/dev/container/script/env.shindex cb2442437a..41effdd816 100644--- a/dev/container/script/env.sh+++ b/dev/container/script/env.sh@@ -17,7 +17,7 @@## See also https://arrow.apache.org/docs/python/development.html#build-and-test-source activate pyarrow-dev+conda activate pyarrow-devexport ARROW_BUILD_TYPE=releaseexport ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIXexport PARQUET_BUILD_TOOLCHAIN=$CONDA_PREFIXdiff --git a/dev/dask_integration/dask_integration.sh b/dev/dask_integration/dask_integration.shindex fb519c8d77..f4999c0ae4 100755--- a/dev/dask_integration/dask_integration.sh+++ b/dev/dask_integration/dask_integration.sh@@ -19,7 +19,7 @@# Set up environment and working directorycd /apache-arrow-source activate pyarrow-dev+conda activate pyarrow-dev# install pytables from defaults for nowconda install -y pytablesdiff --git a/dev/gen_apidocs/create_documents.sh b/dev/gen_apidocs/create_documents.shindex a1d76701ca..6ea44947c8 100755--- a/dev/gen_apidocs/create_documents.sh+++ b/dev/gen_apidocs/create_documents.sh@@ -48,7 +48,7 @@ popd# Make Python documentation (Depends on C++ )# Build Arrow C++-source activate pyarrow-dev+conda activate pyarrow-devexport ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIXexport PARQUET_BUILD_TOOLCHAIN=$CONDA_PREFIXexport LD_LIBRARY_PATH=$(pwd)/apidocs-dist/lib:${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}diff --git a/dev/hdfs_integration/hdfs_integration.sh b/dev/hdfs_integration/hdfs_integration.shindex a73867d914..b48d434732 100755--- a/dev/hdfs_integration/hdfs_integration.sh+++ b/dev/hdfs_integration/hdfs_integration.sh@@ -23,7 +23,7 @@ set -e# and contains both arrow and parquet-cpp# Activate conda environment-source activate pyarrow-dev+conda activate pyarrow-dev# Arrow build variablesexport ARROW_BUILD_TYPE=debugdiff --git a/dev/hiveserver2/hiveserver2.sh b/dev/hiveserver2/hiveserver2.shindex 0ff649e032..4dbaa76a91 100755--- a/dev/hiveserver2/hiveserver2.sh+++ b/dev/hiveserver2/hiveserver2.sh@@ -23,7 +23,7 @@ set -e# and contains both arrow and parquet-cpp# Activate conda environment-source activate pyarrow-dev+conda activate pyarrow-dev# Arrow build variablesexport ARROW_BUILD_TYPE=debugdiff --git a/dev/iwyu/run_iwyu.sh b/dev/iwyu/run_iwyu.shindex e33b3f71be..ae0f761888 100755--- a/dev/iwyu/run_iwyu.sh+++ b/dev/iwyu/run_iwyu.sh@@ -56,7 +56,7 @@ popd# Add iwyu and iwyu_tool.py to pathexport PATH=$IWYU_BUILD_DIR/iwyu-build:$PATH-source activate pyarrow-dev+conda activate pyarrow-devcmake -GNinja -DARROW_PYTHON=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.shindex 8787e8f40e..4eba3c2030 100755--- a/dev/release/verify-release-candidate.sh+++ b/dev/release/verify-release-candidate.sh@@ -143,7 +143,7 @@ setup_miniconda() {pandas \six \cython -c conda-forge- source activate arrow-test+ conda activate arrow-test}# Build and test C++diff --git a/dev/spark_integration/spark_integration.sh b/dev/spark_integration/spark_integration.shindex 85323fd5fc..1f6a273338 100755--- a/dev/spark_integration/spark_integration.sh+++ b/dev/spark_integration/spark_integration.sh@@ -23,7 +23,7 @@ set -ecd /apache-arrow# Activate our pyarrow-dev conda env-source activate pyarrow-dev+conda activate pyarrow-devexport ARROW_HOME=$(pwd)/arrowexport ARROW_BUILD_TYPE=releasediff --git a/integration/README.md b/integration/README.mdindex 8d6df8e577..0a428e6cbb 100644--- a/integration/README.md+++ b/integration/README.md@@ -44,7 +44,7 @@ bash miniconda.sh -b -p minicondaexport PATH=`pwd`/miniconda/bin:$PATHconda create -n arrow-integration python=3.6 nomkl numpy six-source activate arrow-integration+conda activate arrow-integration```If you are on macOS, instead use the URL: