diff --git a/dev/tasks/python-wheels/osx-build.sh b/dev/tasks/python-wheels/osx-build.sh index be39754e815..28f09c87daa 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 ac58cd822ec..5ac96f3c7d1 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