Apache DataFusion SQL Query Engine
ARROW-3229: [Packaging]: Adjust wheel package scripts to account for Parquet codebase migration
Krisztián Szűcs5fceef1add66
diff --git a/dev/tasks/python-wheels/appveyor.yml b/dev/tasks/python-wheels/appveyor.ymlindex d9d208cd58..016041a6c6 100644--- a/dev/tasks/python-wheels/appveyor.yml+++ b/dev/tasks/python-wheels/appveyor.yml@@ -26,7 +26,6 @@ environment:ARROW_SRC: C:\apache-arrowPYARROW_VERSION: {{ arrow.version }}PYARROW_REF: {{ arrow.head }}- PARQUET_CPP_REF: masterinit:- set MINICONDA=C:\Miniconda35-x64diff --git a/dev/tasks/python-wheels/osx-build.sh b/dev/tasks/python-wheels/osx-build.shindex 6dce16f626..4170a93be7 100755--- a/dev/tasks/python-wheels/osx-build.sh+++ b/dev/tasks/python-wheels/osx-build.sh@@ -93,37 +93,6 @@ function build_wheel {install_name_tool -change libarrow_boost_system.dylib @rpath/libarrow_boost_system.dylib libarrow_boost_filesystem.dylibpopd- # We build a custom version of thrift instead of using the one that comes- # with brew as we also want it to use our namespaced version of Boost.- # TODO(PARQUET-1262): Use the external project facilities of parquet-cpp.- export THRIFT_HOME=`pwd`/thift-dist- export THRIFT_VERSION=0.11.0- wget http://archive.apache.org/dist/thrift/${THRIFT_VERSION}/thrift-${THRIFT_VERSION}.tar.gz- tar xf thrift-${THRIFT_VERSION}.tar.gz- pushd thrift-${THRIFT_VERSION}- mkdir build-tmp- pushd build-tmp- cmake -DCMAKE_BUILD_TYPE=release \- "-DCMAKE_CXX_FLAGS=-fPIC" \- "-DCMAKE_C_FLAGS=-fPIC" \- "-DCMAKE_INSTALL_PREFIX=${THRIFT_HOME}" \- "-DCMAKE_INSTALL_RPATH=${THRIFT_HOME}/lib" \- "-DBUILD_SHARED_LIBS=OFF" \- "-DBUILD_TESTING=OFF" \- "-DWITH_QT4=OFF" \- "-DWITH_C_GLIB=OFF" \- "-DWITH_JAVA=OFF" \- "-DWITH_PYTHON=OFF" \- "-DWITH_CPP=ON" \- "-DWITH_STATIC_LIB=ON" \- "-DWITH_LIBEVENT=OFF" \- -DBoost_NAMESPACE=arrow_boost \- -DBOOST_ROOT="$arrow_boost_dist" \- ..- make install -j5- popd- popd-# Now we can start with the actual build of Arrow and Parquet.# We pin NumPy to an old version here as the NumPy version one builds# with is the oldest supported one. Thanks to NumPy's guarantees our Arrow@@ -131,6 +100,7 @@ function build_wheel {export ARROW_HOME=`pwd`/arrow-distexport PARQUET_HOME=`pwd`/arrow-distpip install "cython==0.27.3" "numpy==${NP_TEST_DEP}"+pushd cppmkdir buildpushd build@@ -143,6 +113,7 @@ function build_wheel {-DARROW_PLASMA=ON \-DARROW_RPATH_ORIGIN=ON \-DARROW_PYTHON=ON \+ -DARROW_PARQUET=ON \-DARROW_ORC=ON \-DBOOST_ROOT="$arrow_boost_dist" \-DBoost_NAMESPACE=arrow_boost \@@ -153,23 +124,6 @@ function build_wheel {popdpopd- git clone https://github.com/apache/parquet-cpp.git- pushd parquet-cpp- mkdir build- pushd build- cmake -DCMAKE_BUILD_TYPE=Release \- -DCMAKE_INSTALL_PREFIX=$PARQUET_HOME \- -DPARQUET_VERBOSE_THIRDPARTY_BUILD=ON \- -DPARQUET_BUILD_TESTS=OFF \- -DPARQUET_BOOST_USE_SHARED=ON \- -DBoost_NAMESPACE=arrow_boost \- -DBOOST_ROOT="$arrow_boost_dist" \- ..- make -j5 VERBOSE=1- make install- popd- popd-# Unset the HOME variables and use pkg-config to discover the previously# built binaries. By using pkg-config, we also are able to discover the# ABI and SO versions of the dynamic libraries.diff --git a/dev/tasks/python-wheels/win-build.bat b/dev/tasks/python-wheels/win-build.batindex 37d0b64993..c73b39bded 100644--- a/dev/tasks/python-wheels/win-build.bat+++ b/dev/tasks/python-wheels/win-build.bat@@ -42,7 +42,6 @@ popdset ARROW_HOME=%CONDA_PREFIX%\Libraryset PARQUET_HOME=%CONDA_PREFIX%\Libraryset ARROW_BUILD_TOOLCHAIN=%CONDA_PREFIX%\Library-set PARQUET_BUILD_TOOLCHAIN=%CONDA_PREFIX%\Libraryecho %ARROW_HOME%@@ -57,6 +56,7 @@ cmake -G "%GENERATOR%" ^-DCMAKE_BUILD_TYPE=Release ^-DARROW_CXXFLAGS="/MP" ^-DARROW_PYTHON=ON ^+ -DARROW_PARQUET=ON ^.. || exit /Bcmake --build . --target INSTALL --config Release || exit /B@@ -65,23 +65,6 @@ set PYTHONPATH=%CONDA_PREFIX%\Lib;%CONDA_PREFIX%\Lib\site-packages;%CONDA_PREFIXctest -VV || exit /Bpopd-@rem Build parquet-cpp-git clone https://github.com/apache/parquet-cpp.git || exit /B-pushd parquet-cpp-git checkout "%PARQUET_CPP_REF%"-popd--mkdir parquet-cpp\build-pushd parquet-cpp\build--cmake -G "%GENERATOR%" ^- -DCMAKE_INSTALL_PREFIX=%PARQUET_HOME% ^- -DCMAKE_BUILD_TYPE=Release ^- -DPARQUET_BOOST_USE_SHARED=OFF ^- -DPARQUET_BUILD_TESTS=OFF .. || exit /B-cmake --build . --target INSTALL --config Release || exit /B-popd-@rem Build and import pyarrowset PYTHONPATH=