Skip to content

Apache DataFusion SQL Query Engine

ARROW-5958: [Python] Link zlib statically in the wheels

Krisztián Szűcse3510094b4e2
diff --git a/dev/tasks/python-wheels/osx-build.sh b/dev/tasks/python-wheels/osx-build.sh
index c1d001d558..3dd3ccb2ab 100755
--- a/dev/tasks/python-wheels/osx-build.sh
+++ b/dev/tasks/python-wheels/osx-build.sh
@@ -137,6 +137,7 @@ function build_wheel {
-DARROW_FLIGHT=ON \
-DgRPC_SOURCE=SYSTEM \
-Dc-ares_SOURCE=BUNDLED \
+ -Dzlib_SOURCE=BUNDLED \
-DARROW_PROTOBUF_USE_SHARED=OFF \
-DOPENSSL_USE_STATIC_LIBS=ON \
-DMAKE=make \
diff --git a/dev/tasks/python-wheels/travis.linux.yml b/dev/tasks/python-wheels/travis.linux.yml
index 858d24ec8d..13121a484d 100644
--- a/dev/tasks/python-wheels/travis.linux.yml
+++ b/dev/tasks/python-wheels/travis.linux.yml
@@ -61,7 +61,7 @@ script:
# run auditwheel, it does always exit with 0 so it is mostly for debugging
# purposes
- - docker run -v `pwd`:/arrow quay.io/pypa/manylinux1_x86_64 /bin/bash -c
+ - docker run -v `pwd`:/arrow quay.io/pypa/{{ wheel_tag }}_x86_64 /bin/bash -c
"auditwheel show /arrow/python/{{ wheel_tag }}/dist/*.whl"
# test on multiple distributions
diff --git a/dev/tasks/python-wheels/win-build.bat b/dev/tasks/python-wheels/win-build.bat
index dbb4e47f4f..14b5bb50be 100644
--- a/dev/tasks/python-wheels/win-build.bat
+++ b/dev/tasks/python-wheels/win-build.bat
@@ -54,6 +54,7 @@ cmake -G "%GENERATOR%" ^
-DARROW_PARQUET=ON ^
-DARROW_GANDIVA=ON ^
-Duriparser_SOURCE=BUNDLED ^
+ -Dzlib_SOURCE=BUNDLED ^
.. || exit /B
cmake --build . --target install --config Release || exit /B
popd
diff --git a/docker-compose.yml b/docker-compose.yml
index d2c6029b3b..507fd4a352 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -498,7 +498,7 @@ services:
# $ docker-compose pull python-manylinux1
# an then run:
# $ docker-compose run -e PYTHON_VERSION=3.7 python-manylinux1
- image: quay.io/ursa-labs/arrow_manylinux1_x86_64_base:latest
+ image: ursalab/arrow_manylinux1_x86_64_base:0.14.1-static-zlib
build:
context: python/manylinux1
dockerfile: Dockerfile-x86_64_base
@@ -520,7 +520,7 @@ services:
# $ docker-compose pull python-manylinux2010
# an then run:
# $ docker-compose run -e PYTHON_VERSION=3.7 python-manylinux2010
- image: ursalab/arrow_manylinux2010_x86_64_base:latest
+ image: ursalab/arrow_manylinux2010_x86_64_base:0.14.1-static-zlib
build:
context: python/manylinux2010
dockerfile: Dockerfile-x86_64_base