1#!/bin/bash 2 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19 20source /multibuild/manylinux_utils.sh 21 22# Quit on failure 23set -e 24 25PYTHON_VERSION=3.6 26CPYTHON_PATH="$(cpython_path ${PYTHON_VERSION})" 27PYTHON_INTERPRETER="${CPYTHON_PATH}/bin/python" 28PIP="${CPYTHON_PATH}/bin/pip" 29 30ARROW_BUILD_DIR=/tmp/arrow-build 31mkdir -p "${ARROW_BUILD_DIR}" 32pushd "${ARROW_BUILD_DIR}" 33 34PATH="${CPYTHON_PATH}/bin:${PATH}" 35export ARROW_TEST_DATA="/arrow/testing/data" 36 37cmake -DCMAKE_BUILD_TYPE=Release \ 38 -DARROW_DEPENDENCY_SOURCE="SYSTEM" \ 39 -DZLIB_ROOT=/usr/local \ 40 -DCMAKE_INSTALL_PREFIX=/arrow-dist \ 41 -DCMAKE_INSTALL_LIBDIR=lib \ 42 -DARROW_BUILD_TESTS=ON \ 43 -DARROW_BUILD_SHARED=ON \ 44 -DARROW_BOOST_USE_SHARED=OFF \ 45 -DARROW_PROTOBUF_USE_SHARED=OFF \ 46 -DARROW_GANDIVA_PC_CXX_FLAGS="-isystem;/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2;-isystem;/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/x86_64-CentOS-linux/" \ 47 -DARROW_JEMALLOC=ON \ 48 -DARROW_RPATH_ORIGIN=ON \ 49 -DARROW_PYTHON=OFF \ 50 -DARROW_PARQUET=OFF \ 51 -DARROW_DATASET=OFF \ 52 -DARROW_FILESYSTEM=OFF \ 53 -DPARQUET_BUILD_ENCRYPTION=OFF \ 54 -DPythonInterp_FIND_VERSION=${PYTHON_VERSION} \ 55 -DARROW_GANDIVA=ON \ 56 -DARROW_GANDIVA_JAVA=ON \ 57 -DARROW_GANDIVA_JAVA7=ON \ 58 -DBoost_NAMESPACE=arrow_boost \ 59 -Dgflags_SOURCE=BUNDLED \ 60 -DRapidJSON_SOURCE=BUNDLED \ 61 -DRE2_SOURCE=BUNDLED \ 62 -DARROW_BUILD_UTILITIES=OFF \ 63 -DBoost_NAMESPACE=arrow_boost \ 64 -DBOOST_ROOT=/arrow_boost_dist \ 65 -GNinja /arrow/cpp 66ninja install 67CTEST_OUTPUT_ON_FAILURE=1 ninja test 68popd 69 70 71# copy the library to distribution 72cp -L /arrow-dist/lib/libgandiva_jni.so /arrow/dist 73