Apache DataFusion SQL Query Engine
ARROW-5020: [CI] Split Gandiva-related packages into separate .yml file
Antoine Pitrou1d0e5864266e
diff --git a/ci/appveyor-cpp-build.bat b/ci/appveyor-cpp-build.batindex 54f947ae1d..c221892515 100644--- a/ci/appveyor-cpp-build.bat+++ b/ci/appveyor-cpp-build.bat@@ -104,7 +104,7 @@ set CONDA_PACKAGES=--file=ci\conda_env_python.yml python=%PYTHON% numpy=1.14 booif "%ARROW_BUILD_GANDIVA%" == "ON" (@rem Install llvmdev in the toolchain if building gandiva.dll- set CONDA_PACKAGES=%CONDA_PACKAGES% llvmdev=%ARROW_LLVM_VERSION% clangdev=%ARROW_LLVM_VERSION%+ set CONDA_PACKAGES=%CONDA_PACKAGES% --file=ci\conda_env_gandiva.yml)if "%JOB%" == "Toolchain" (diff --git a/ci/conda_env_cpp.yml b/ci/conda_env_cpp.ymlindex a90e82bd6e..cf5ba482fa 100644--- a/ci/conda_env_cpp.yml+++ b/ci/conda_env_cpp.yml@@ -28,15 +28,12 @@ gloggmock>=1.8.1grpc-cppgtest>=1.8.1-clangdev=7-llvmdev=7libprotobuflz4-cninjapkg-configpythonrapidjson-re2snappythrift-cpp>=0.11.0zlibdiff --git a/ci/conda_env_gandiva.yml b/ci/conda_env_gandiva.ymlnew file mode 100644index 0000000000..448f444388--- /dev/null+++ b/ci/conda_env_gandiva.yml@@ -0,0 +1,20 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you under the Apache License, Version 2.0 (the+# "License"); you may not use this file except in compliance+# with the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing,+# software distributed under the License is distributed on an+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+# KIND, either express or implied. See the License for the+# specific language governing permissions and limitations+# under the License.++clangdev=7+llvmdev=7+re2diff --git a/ci/travis_install_toolchain.sh b/ci/travis_install_toolchain.shindex d5fdb11e01..7951e40d30 100755--- a/ci/travis_install_toolchain.sh+++ b/ci/travis_install_toolchain.sh@@ -23,23 +23,17 @@ source $TRAVIS_BUILD_DIR/ci/travis_install_conda.shif [ ! -e $CPP_TOOLCHAIN ]; thenCONDA_PACKAGES=""- CONDA_LABEL=""- if [ "$ARROW_TRAVIS_GANDIVA" == "1" ] && [ $TRAVIS_OS_NAME == "osx" ]; then- CONDA_PACKAGES="$CONDA_PACKAGES llvmdev=$CONDA_LLVM_VERSION"- fi-- if [ "$ARROW_TRAVIS_VALGRIND" == "1" ]; then- # Use newer Valgrind- CONDA_PACKAGES="$CONDA_PACKAGES valgrind"+ if [ "$ARROW_TRAVIS_GANDIVA" == "1" ]; then+ CONDA_PACKAGES="$CONDA_PACKAGES --file=$TRAVIS_BUILD_DIR/ci/conda_env_gandiva.yml"fi# Set up C++ toolchain from conda-forge packages for faster buildstime conda create -y -q -p $CPP_TOOLCHAIN \--file=$TRAVIS_BUILD_DIR/ci/conda_env_cpp.yml \--file=$TRAVIS_BUILD_DIR/ci/conda_env_unix.yml \- compilers \$CONDA_PACKAGES \+ compilers \nomkl \python=3.6fidiff --git a/ci/travis_script_python.sh b/ci/travis_script_python.shindex 7d8da4b4bd..9e4fe72224 100755--- a/ci/travis_script_python.sh+++ b/ci/travis_script_python.sh@@ -38,20 +38,28 @@ CONDA_ENV_DIR=$TRAVIS_BUILD_DIR/pyarrow-test-$PYTHON_VERSION# may not have NumPy (which is required for python-test)export ZLIB_HOME=$CONDA_ENV_DIR+CONDA_FILES=""+CONDA_PACKAGES=""++if [ "$ARROW_TRAVIS_PYTHON_GANDIVA" == "1" ]; then+ CONDA_FILES="$CONDA_FILES --file=$TRAVIS_BUILD_DIR/ci/conda_env_gandiva.yml"+fi+if [ "$ARROW_TRAVIS_PYTHON_JVM" == "1" ]; then- CONDA_JVM_DEPS="jpype1"+ CONDA_PACKAGES="$CONDA_PACKAGES jpype1"ficonda create -y -q -p $CONDA_ENV_DIR \--file $TRAVIS_BUILD_DIR/ci/conda_env_cpp.yml \--file $TRAVIS_BUILD_DIR/ci/conda_env_python.yml \+ ${CONDA_FILES} \nomkl \pip \numpy=1.14 \'libgfortran<4' \python=${PYTHON_VERSION} \compilers \- ${CONDA_JVM_DEPS}+ ${CONDA_PACKAGES}conda activate $CONDA_ENV_DIR