Skip to content

Apache DataFusion SQL Query Engine

ARROW-5690: [Packaging][Python] Fix macOS wheel building

Philipp Moritzbae743f28c5d
diff --git a/dev/tasks/python-wheels/osx-build.sh b/dev/tasks/python-wheels/osx-build.sh
index be39754e81..28f09c87da 100755
--- a/dev/tasks/python-wheels/osx-build.sh
+++ b/dev/tasks/python-wheels/osx-build.sh
@@ -136,6 +136,7 @@ function build_wheel {
-DBoost_NAMESPACE=arrow_boost \
-DARROW_FLIGHT=ON \
-DgRPC_SOURCE=SYSTEM \
+ -DARROW_PROTOBUF_USE_SHARED=OFF \
-DMAKE=make \
..
make -j5
diff --git a/dev/tasks/python-wheels/travis.osx.yml b/dev/tasks/python-wheels/travis.osx.yml
index ac58cd822e..5ac96f3c7d 100644
--- a/dev/tasks/python-wheels/travis.osx.yml
+++ b/dev/tasks/python-wheels/travis.osx.yml
@@ -48,6 +48,9 @@ before_install:
- brew update
- brew upgrade cmake
- brew install bison flex grpc openssl llvm@7
+ # Remove shared grpc libraries installed by brew to make sure
+ # we are linked against the static ones.
+ - rm -f /usr/local/opt/grpc/lib/*.dylib
- export CONFIG_PATH=`pwd`/arrow/dev/tasks/python-wheels/osx-build.sh
- source multibuild/common_utils.sh
@@ -63,8 +66,9 @@ install:
# the following functions are defined in osx-build.sh
- build_wheel arrow
- # test the built wheels, remove llvm to ensure it links statically
+ # test the built wheels, remove llvm and grpc to ensure they link statically
- brew uninstall llvm@7
+ - brew uninstall grpc
- install_run arrow
# move built wheels to a top level directory