Apache DataFusion SQL Query Engine
ARROW-9506: [Packaging][Python] Fix macOS wheel build failures
Krisztián Szűcsc307c38d92ca
diff --git a/dev/tasks/python-wheels/osx-build.sh b/dev/tasks/python-wheels/osx-build.shindex 677b04f0f4..9129290530 100755--- a/dev/tasks/python-wheels/osx-build.sh+++ b/dev/tasks/python-wheels/osx-build.sh@@ -52,10 +52,6 @@ function build_wheel {pip install $(pip_opts) -r python/requirements-wheel-build.txt- export PYARROW_INSTALL_TESTS=1- export PYARROW_WITH_GANDIVA=0- export BUILD_ARROW_GANDIVA=OFF-git submodule update --initexport ARROW_TEST_DATA=`pwd`/testing/data@@ -69,7 +65,7 @@ function build_wheel {-DARROW_DEPENDENCY_SOURCE=BUNDLED \-DARROW_HDFS=ON \-DARROW_FLIGHT=ON \- -DARROW_GANDIVA=${BUILD_ARROW_GANDIVA} \+ -DARROW_GANDIVA=OFF \-DARROW_GRPC_USE_SHARED=OFF \-DARROW_JEMALLOC=ON \-DARROW_ORC=OFF \@@ -114,8 +110,10 @@ function build_wheel {export PYARROW_WITH_ORC=0export PYARROW_WITH_JEMALLOC=1export PYARROW_WITH_PLASMA=1+ export PYARROW_WITH_GANDIVA=0export PYARROW_BUNDLE_ARROW_CPP=1export PYARROW_BUILD_TYPE='release'+ export PYARROW_INSTALL_TESTS=1export SETUPTOOLS_SCM_PRETEND_VERSION=$PYARROW_VERSIONpushd pythonpython setup.py build_ext bdist_wheeldiff --git a/dev/tasks/python-wheels/travis.osx.yml b/dev/tasks/python-wheels/travis.osx.ymlindex 3aa552aa2f..f2a62b9443 100644--- a/dev/tasks/python-wheels/travis.osx.yml+++ b/dev/tasks/python-wheels/travis.osx.yml@@ -18,6 +18,35 @@ os: osxosx_image: xcode11.3language: generic+addons:+ homebrew:+ packages:+ - automake+ - boost+ - brotli+ - c-ares+ - ccache+ - cmake+ - flatbuffers+ - git+ - glog+ - grpc+ - lz4+ - ninja+ - numpy+ - protobuf+ - rapidjson+ - re2+ - snappy+ - thrift+ - wget+ - zstd+ - bison+ - flex+ update: true+# don't build twiceif: tag IS blank@@ -29,6 +58,7 @@ env:- PYARROW_BUILD_VERBOSE=1- MB_PYTHON_VERSION={{ python_version }}- MACOSX_DEPLOYMENT_TARGET="10.9"+ - HOMEBREW_NO_AUTO_UPDATE=1before_install:- git clone https://github.com/matthew-brett/multibuild@@ -37,22 +67,13 @@ before_install:- git clone --no-checkout {{ arrow.remote }} arrow- git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}- git -C arrow checkout FETCH_HEAD-- - brew update- - brew reinstall mercurial- - travis_wait 30 brew bundle --file=arrow/cpp/Brewfile- # Install tools to build bundled Thrift- - brew install- bison- flex+ - git -C arrow submodule update --init# source utilities required for wheel builds- export CONFIG_PATH=`pwd`/arrow/dev/tasks/python-wheels/osx-build.sh- source multibuild/common_utils.sh- source multibuild/travis_osx_steps.sh- before_install- # Fix SSL TLS issue for Python 3.5 on macOS- - pip install requests[security]install:# the following functions are defined in osx-build.sh@@ -64,7 +85,7 @@ install:# install the built wheel and test dependencies- install_wheel arrow# run unit tests before removing the system libraries- - run_unit_tests arrow+ - ulimit -S -n 4096 && run_unit_tests arrow# run the import tests- run_import_tests@@ -73,9 +94,8 @@ install:- deactivate# crossbow dependencies for deployment- - unset MACOSX_DEPLOYMENT_TARGET- - pip3 install click ruamel.yaml setuptools_scm github3.py toolz requests[security]- - python3 arrow/dev/tasks/crossbow.py+ - /usr/local/opt/[email protected]/libexec/bin/pip install click ruamel.yaml setuptools_scm github3.py toolz requests[security]+ - /usr/local/opt/[email protected]/libexec/bin/python arrow/dev/tasks/crossbow.py--queue-path $(pwd)--queue-remote {{ queue_remote_url }}upload-artifacts