You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ks...@apache.org on 2019/06/26 14:26:56 UTC

[arrow] branch master updated: ARROW-5737: [Crossbow] Use Python version version 2.7 in the gandiva tasks

This is an automated email from the ASF dual-hosted git repository.

kszucs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new aa31f3b  ARROW-5737: [Crossbow] Use Python version version 2.7 in the gandiva tasks
aa31f3b is described below

commit aa31f3bd5264d2a5b427a40ba9abcbf52a447114
Author: Praveen <pr...@dremio.com>
AuthorDate: Wed Jun 26 16:26:47 2019 +0200

    ARROW-5737: [Crossbow] Use Python version version 2.7 in the gandiva tasks
    
    - Use 2.7 version of python in the manylinux crossbow gandiva build.
    
    Author: Praveen <pr...@dremio.com>
    
    Closes #4703 from praveenbingo/crossbow-issue and squashes the following commits:
    
    51c9a396a <Praveen> Fixed path.
    451f6bd94 <Praveen> Test picking 2.7 version of python.
---
 dev/tasks/gandiva-jars/build-cpp-linux.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev/tasks/gandiva-jars/build-cpp-linux.sh b/dev/tasks/gandiva-jars/build-cpp-linux.sh
index 96fe2a3..ba359b3 100755
--- a/dev/tasks/gandiva-jars/build-cpp-linux.sh
+++ b/dev/tasks/gandiva-jars/build-cpp-linux.sh
@@ -25,10 +25,17 @@ set -e
 # Print commands for debugging
 set -x
 
+PYTHON_VERSION=2.7
+CPYTHON_PATH="$(cpython_path ${PYTHON_VERSION} 16)"
+PYTHON_INTERPRETER="${CPYTHON_PATH}/bin/python"
+PIP="${CPYTHON_PATH}/bin/pip"
+
 ARROW_BUILD_DIR=/tmp/arrow-build
 mkdir -p "${ARROW_BUILD_DIR}"
 pushd "${ARROW_BUILD_DIR}"
 
+PATH="${CPYTHON_PATH}/bin:${PATH}"
+
 cmake -DCMAKE_BUILD_TYPE=Release \
     -DARROW_DEPENDENCY_SOURCE="SYSTEM" \
     -DZLIB_ROOT=/usr/local \
@@ -43,6 +50,7 @@ cmake -DCMAKE_BUILD_TYPE=Release \
     -DARROW_PYTHON=OFF \
     -DARROW_PARQUET=OFF \
     -DPARQUET_BUILD_ENCRYPTION=OFF \
+    -DPythonInterp_FIND_VERSION=${PYTHON_VERSION} \
     -DARROW_GANDIVA=ON \
     -DARROW_GANDIVA_JAVA=ON \
     -DARROW_GANDIVA_JAVA7=ON \