Skip to content

Apache DataFusion SQL Query Engine

ARROW-4881: [C++] remove references to ARROW_BUILD_TOOLCHAIN

Benjamin Kietzman3b052427928b
diff --git a/ci/docker_build_r.sh b/ci/docker_build_r.sh
index 6e676784af..7f72cdf472 100755
--- a/ci/docker_build_r.sh
+++ b/ci/docker_build_r.sh
@@ -18,7 +18,6 @@
set -e
-export ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX
export ARROW_HOME=$CONDA_PREFIX
# Build arrow
diff --git a/ci/travis_script_python.sh b/ci/travis_script_python.sh
index 1e049c4c2f..710ebb9264 100755
--- a/ci/travis_script_python.sh
+++ b/ci/travis_script_python.sh
@@ -33,12 +33,9 @@ PYTHON_VERSION=$1
CONDA_ENV_DIR=$TRAVIS_BUILD_DIR/pyarrow-test-$PYTHON_VERSION
# We should use zlib in the target Python directory to avoid loading
-# wrong libpython on macOS at run-time. If we use zlib in
-# $ARROW_BUILD_TOOLCHAIN and libpython3.6m.dylib exists in both
-# $ARROW_BUILD_TOOLCHAIN and $CONDA_ENV_DIR, arrow-python-test uses
-# libpython3.6m.dylib on $ARROW_BUILD_TOOLCHAIN not $CONDA_ENV_DIR.
-# libpython3.6m.dylib on $ARROW_BUILD_TOOLCHAIN doesn't have NumPy. So
-# python-test fails.
+# the wrong libpython on macOS at run-time. Another zlib might sit in a
+# directory with a different libpython3.6m.dylib, and that libpython3.6m.dylib
+# may not have NumPy (which is required for python-test)
export ZLIB_HOME=$CONDA_ENV_DIR
if [ "$ARROW_TRAVIS_PYTHON_JVM" == "1" ]; then
diff --git a/dev/container/script/env.sh b/dev/container/script/env.sh
index 41effdd816..d5b670f25c 100644
--- a/dev/container/script/env.sh
+++ b/dev/container/script/env.sh
@@ -19,7 +19,6 @@
# See also https://arrow.apache.org/docs/python/development.html#build-and-test
conda activate pyarrow-dev
export ARROW_BUILD_TYPE=release
-export ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX
export PARQUET_BUILD_TOOLCHAIN=$CONDA_PREFIX
export ARROW_HOME=$CONDA_PREFIX
export PARQUET_HOME=$CONDA_PREFIX
diff --git a/dev/gen_apidocs/create_documents.sh b/dev/gen_apidocs/create_documents.sh
index ee8f8c864d..c946f48a98 100755
--- a/dev/gen_apidocs/create_documents.sh
+++ b/dev/gen_apidocs/create_documents.sh
@@ -45,7 +45,6 @@ popd
# Make Python documentation (Depends on C++ )
# Build Arrow C++
-export ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX
export LD_LIBRARY_PATH=/apidocs-dist/lib:${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}
export PKG_CONFIG_PATH=${CONDA_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}
export PKG_CONFIG_PATH=/apidocs-dist/lib/pkgconfig:${PKG_CONFIG_PATH}
diff --git a/dev/hiveserver2/hiveserver2.sh b/dev/hiveserver2/hiveserver2.sh
index 4dbaa76a91..664b7b86a9 100755
--- a/dev/hiveserver2/hiveserver2.sh
+++ b/dev/hiveserver2/hiveserver2.sh
@@ -27,7 +27,6 @@ conda activate pyarrow-dev
# Arrow build variables
export ARROW_BUILD_TYPE=debug
-export ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX
export ARROW_HOME=$CONDA_PREFIX
# For newer GCC per https://arrow.apache.org/docs/python/development.html#known-issues
diff --git a/dev/lint/run_iwyu.sh b/dev/lint/run_iwyu.sh
index 050096809b..edae841fa5 100755
--- a/dev/lint/run_iwyu.sh
+++ b/dev/lint/run_iwyu.sh
@@ -18,8 +18,6 @@
set -eux
-export ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX
-
mkdir -p /build/lint
pushd /build/lint
diff --git a/dev/release/verify-release-candidate.bat b/dev/release/verify-release-candidate.bat
index f5f9e96423..7d060b79e4 100644
--- a/dev/release/verify-release-candidate.bat
+++ b/dev/release/verify-release-candidate.bat
@@ -57,8 +57,6 @@ set CONFIGURATION=release
pushd %ARROW_SOURCE%
-set ARROW_BUILD_TOOLCHAIN=%CONDA_PREFIX%\Library
-
set ARROW_HOME=%INSTALL_DIR%
set PARQUET_HOME=%INSTALL_DIR%
set PATH=%INSTALL_DIR%\bin;%PATH%
diff --git a/dev/tasks/conda-recipes/arrow-cpp/bld.bat b/dev/tasks/conda-recipes/arrow-cpp/bld.bat
index 2bfd49c4af..7e713e8565 100644
--- a/dev/tasks/conda-recipes/arrow-cpp/bld.bat
+++ b/dev/tasks/conda-recipes/arrow-cpp/bld.bat
@@ -18,8 +18,6 @@
mkdir "%SRC_DIR%"\cpp\build
pushd "%SRC_DIR%"\cpp\build
-set ARROW_BUILD_TOOLCHAIN=%LIBRARY_PREFIX%
-
cmake -G "%CMAKE_GENERATOR%" ^
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
-DARROW_DEPENDENCY_SOURCE=SYSTEM ^
diff --git a/dev/tasks/python-wheels/win-build.bat b/dev/tasks/python-wheels/win-build.bat
index 8f7f6f4b7d..02cd57daeb 100644
--- a/dev/tasks/python-wheels/win-build.bat
+++ b/dev/tasks/python-wheels/win-build.bat
@@ -41,7 +41,6 @@ popd
set ARROW_HOME=%CONDA_PREFIX%\Library
set PARQUET_HOME=%CONDA_PREFIX%\Library
-set ARROW_BUILD_TOOLCHAIN=%CONDA_PREFIX%\Library
echo %ARROW_HOME%