Apache DataFusion SQL Query Engine
ARROW-7344: [Packaging][Python] Build manylinux2014 wheels
Neal Richardson0f4d766d10e8
diff --git a/dev/release/verify-release-candidate-wheels.bat b/dev/release/verify-release-candidate-wheels.batindex 0644f03cdb..0f8e047752 100644--- a/dev/release/verify-release-candidate-wheels.bat+++ b/dev/release/verify-release-candidate-wheels.bat@@ -42,6 +42,9 @@ if errorlevel 1 GOTO errorCALL :verify_wheel 3.7 %1 %2if errorlevel 1 GOTO error+CALL :verify_wheel 3.8 %1 %2+if errorlevel 1 GOTO error+:donecd %_CURRENT_DIR%diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.shindex 5c817f5d89..1ac6bb5772 100755--- a/dev/release/verify-release-candidate.sh+++ b/dev/release/verify-release-candidate.sh@@ -555,34 +555,47 @@ check_python_imports() {}test_linux_wheels() {- local py_arches="2.7mu 3.6m 3.7m"+ local py_arches="2.7mu 3.5m 3.6m 3.7m 3.8"+ local manylinuxes="1 2010 2014"for py_arch in ${py_arches}; dolocal env=_verify_wheel-${py_arch}conda create -yq -n ${env} python=${py_arch//[mu]/}conda activate ${env}- pip install python-rc/${VERSION}-rc${RC_NUMBER}/pyarrow-${VERSION}-cp${py_arch//[mu.]/}-cp${py_arch//./}-manylinux1_x86_64.whl+ for ml_spec in manylinuxes; do+ if [[ "$py_arch" = "2.7mu" && "$ml_spec" = "2014" ]]; then+ # manylinux2014 does not support py2.7, so skip that one+ continue+ fi- check_python_imports py_arch+ pip install python-rc/${VERSION}-rc${RC_NUMBER}/pyarrow-${VERSION}-cp${py_arch//[mu.]/}-cp${py_arch//./}-manylinux${ml_spec}_x86_64.whl- pip install python-rc/${VERSION}-rc${RC_NUMBER}/pyarrow-${VERSION}-cp${py_arch//[mu.]/}-cp${py_arch//./}-manylinux2010_x86_64.whl-- check_python_imports py_arch+ check_python_imports py_arch+ doneconda deactivatedone}test_macos_wheels() {- local py_arches="2.7m 3.6m 3.7m"+ local py_arches="2.7m 3.5m 3.6m 3.7m 3.8"for py_arch in ${py_arches}; dolocal env=_verify_wheel-${py_arch}conda create -yq -n ${env} python=${py_arch//m/}conda activate ${env}- pip install python-rc/${VERSION}-rc${RC_NUMBER}/pyarrow-${VERSION}-cp${py_arch//[m.]/}-cp${py_arch//./}-macosx_10_6_intel.whl+ macos_suffix=macosx+ case "${py_arch}" in+ *m)+ macos_suffix="${macos_suffix}_10_6_intel"+ ;;+ *)+ macos_suffix="${macos_suffix}_10_9_x86_64"+ ;;+ esac+ pip install python-rc/${VERSION}-rc${RC_NUMBER}/pyarrow-${VERSION}-cp${py_arch//[m.]/}-cp${py_arch//./}-${macos_suffix}.whlcheck_python_imports py_archdiff --git a/dev/tasks/python-wheels/azure.linux.yml b/dev/tasks/python-wheels/azure.linux.ymlindex e2ad88fe68..23ebfd5916 100644--- a/dev/tasks/python-wheels/azure.linux.yml+++ b/dev/tasks/python-wheels/azure.linux.yml@@ -40,7 +40,7 @@ jobs:docker-compose -vcd arrowBUILD_IMAGE=centos-python-{{ wheel_tag }}- docker-compose pull $BUILD_IMAGE+ docker-compose pull --ignore-pull-failures $BUILD_IMAGE# TODO(kou): Uncomment this when we resolve "ADD never use cache" problem.# docker-compose build $BUILD_IMAGEdocker-compose run \@@ -58,7 +58,7 @@ jobs:docker run \-v $(pwd):/arrow quay.io/pypa/{{ wheel_tag }}_x86_64 \/bin/bash -c \- "auditwheel show /arrow/python/{{ wheel_tag }}/dist/*.whl"+ "auditwheel show /arrow/python/{{ wheel_dir }}/dist/*.whl"displayName: Audit wheel- script: |@@ -72,7 +72,7 @@ jobs:docker run \--shm-size 2G \-v $(pwd):/arrow \- -e WHEEL_TAG="{{ wheel_tag }}" \+ -e WHEEL_DIR="{{ wheel_dir }}" \{{ image }} \/arrow/dev/tasks/python-wheels/manylinux-test.sh ${test_args}{%- endfor %}@@ -84,7 +84,7 @@ jobs:--queue-path . \--queue-remote {{ queue.remote_url }} \upload-artifacts \- --pattern "arrow/python/{{ wheel_tag }}/dist/*" \+ --pattern "arrow/python/{{ wheel_dir }}/dist/*" \--sha {{ task.branch }} \--tag {{ task.tag }}env:diff --git a/dev/tasks/python-wheels/manylinux-test.sh b/dev/tasks/python-wheels/manylinux-test.shindex fe0f21df74..2181300c9e 100755--- a/dev/tasks/python-wheels/manylinux-test.sh+++ b/dev/tasks/python-wheels/manylinux-test.sh@@ -23,7 +23,7 @@ export ARROW_TEST_DATA=/arrow/testing/datapython --version# Install built wheel-pip install -q /arrow/python/$WHEEL_TAG/dist/*.whl+pip install -q /arrow/python/$WHEEL_DIR/dist/*.whl# Install test dependencies (pip won't work after removing system zlib)pip install -q -r /arrow/python/requirements-test.txt# Run pyarrow testsdiff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.ymlindex e656e7ed25..adfef0fa01 100644--- a/dev/tasks/tasks.yml+++ b/dev/tasks/tasks.yml@@ -44,6 +44,10 @@ groups:- wheel-manylinux2010-cp36m- wheel-manylinux2010-cp37m- wheel-manylinux2010-cp38+ - wheel-manylinux2014-cp35m+ - wheel-manylinux2014-cp36m+ - wheel-manylinux2014-cp37m+ - wheel-manylinux2014-cp38- wheel-osx-cp27m- wheel-osx-cp35m- wheel-osx-cp36m@@ -219,6 +223,10 @@ groups:- wheel-manylinux2010-cp36m- wheel-manylinux2010-cp37m- wheel-manylinux2010-cp38+ - wheel-manylinux2014-cp35m+ - wheel-manylinux2014-cp36m+ - wheel-manylinux2014-cp37m+ - wheel-manylinux2014-cp38- wheel-osx-cp27m- wheel-osx-cp35m- wheel-osx-cp36m@@ -381,6 +389,7 @@ tasks:python_version: 2.7unicode_width: 16wheel_tag: manylinux1+ wheel_dir: manylinux1test_docker_images: []test_remove_system_libs: trueartifacts:@@ -394,6 +403,7 @@ tasks:python_version: 2.7unicode_width: 32wheel_tag: manylinux1+ wheel_dir: manylinux1test_docker_images:- python:2.7 # debian ucs4test_remove_system_libs: false@@ -408,6 +418,7 @@ tasks:python_version: 3.5unicode_width: 16wheel_tag: manylinux1+ wheel_dir: manylinux1test_docker_images:- python:3.5test_remove_system_libs: true@@ -422,6 +433,7 @@ tasks:python_version: 3.6unicode_width: 16wheel_tag: manylinux1+ wheel_dir: manylinux1test_docker_images:- python:3.6test_remove_system_libs: true@@ -436,6 +448,7 @@ tasks:python_version: 3.7unicode_width: 16wheel_tag: manylinux1+ wheel_dir: manylinux1test_docker_images:- python:3.7test_remove_system_libs: true@@ -450,6 +463,7 @@ tasks:python_version: 3.8unicode_width: 16wheel_tag: manylinux1+ wheel_dir: manylinux1test_docker_images:- python:3.8test_remove_system_libs: true@@ -464,6 +478,7 @@ tasks:python_version: 2.7unicode_width: 16wheel_tag: manylinux2010+ wheel_dir: manylinux201xtest_docker_images: []test_remove_system_libs: trueartifacts:@@ -477,6 +492,7 @@ tasks:python_version: 2.7unicode_width: 32wheel_tag: manylinux2010+ wheel_dir: manylinux201xtest_docker_images:- python:2.7 # debian ucs4test_remove_system_libs: false@@ -491,6 +507,7 @@ tasks:python_version: 3.5unicode_width: 16wheel_tag: manylinux2010+ wheel_dir: manylinux201xtest_docker_images:- python:3.5test_remove_system_libs: true@@ -505,6 +522,7 @@ tasks:python_version: 3.6unicode_width: 16wheel_tag: manylinux2010+ wheel_dir: manylinux201xtest_docker_images:- python:3.6test_remove_system_libs: true@@ -519,6 +537,7 @@ tasks:python_version: 3.7unicode_width: 16wheel_tag: manylinux2010+ wheel_dir: manylinux201xtest_docker_images:- python:3.7test_remove_system_libs: true@@ -533,12 +552,73 @@ tasks:python_version: 3.8unicode_width: 16wheel_tag: manylinux2010+ wheel_dir: manylinux201xtest_docker_images:- python:3.8test_remove_system_libs: trueartifacts:- pyarrow-{no_rc_version}-cp38-cp38-manylinux2010_x86_64.whl+ wheel-manylinux2014-cp35m:+ ci: azure+ platform: linux+ template: python-wheels/azure.linux.yml+ params:+ python_version: 3.5+ unicode_width: 16+ wheel_tag: manylinux2014+ wheel_dir: manylinux201x+ test_docker_images:+ - python:3.5+ test_remove_system_libs: true+ artifacts:+ - pyarrow-{no_rc_version}-cp35-cp35m-manylinux2014_x86_64.whl++ wheel-manylinux2014-cp36m:+ ci: azure+ platform: linux+ template: python-wheels/azure.linux.yml+ params:+ python_version: 3.6+ unicode_width: 16+ wheel_tag: manylinux2014+ wheel_dir: manylinux201x+ test_docker_images:+ - python:3.6+ test_remove_system_libs: true+ artifacts:+ - pyarrow-{no_rc_version}-cp36-cp36m-manylinux2014_x86_64.whl++ wheel-manylinux2014-cp37m:+ ci: azure+ platform: linux+ template: python-wheels/azure.linux.yml+ params:+ python_version: 3.7+ unicode_width: 16+ wheel_tag: manylinux2014+ wheel_dir: manylinux201x+ test_docker_images:+ - python:3.7+ test_remove_system_libs: true+ artifacts:+ - pyarrow-{no_rc_version}-cp37-cp37m-manylinux2014_x86_64.whl++ wheel-manylinux2014-cp38:+ ci: azure+ platform: linux+ template: python-wheels/azure.linux.yml+ params:+ python_version: 3.8+ unicode_width: 16+ wheel_tag: manylinux2014+ wheel_dir: manylinux201x+ test_docker_images:+ - python:3.8+ test_remove_system_libs: true+ artifacts:+ - pyarrow-{no_rc_version}-cp38-cp38-manylinux2014_x86_64.whl+############################## Wheel OSX ####################################wheel-osx-cp27m:diff --git a/docker-compose.yml b/docker-compose.ymlindex 84eaaeaa38..019d27239a 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -579,8 +579,8 @@ services:centos-python-manylinux2010:image: ${REPO}:amd64-centos-6.10-python-manylinux2010build:- context: python/manylinux2010- dockerfile: Dockerfile-x86_64_base+ context: python/manylinux201x+ dockerfile: Dockerfile-x86_64_base_2010cache_from:- ${REPO}:amd64-centos-6.10-python-manylinux2010shm_size: *shm-size@@ -590,7 +590,24 @@ services:UNICODE_WIDTH: ${UNICODE_WIDTH:-16}volumes:- .:/arrow:delegated- - ./python/manylinux2010:/io:delegated+ - ./python/manylinux201x:/io:delegated+ command: *manylinux-command++ centos-python-manylinux2014:+ image: ${REPO}:amd64-centos-7.7-python-manylinux2014+ build:+ context: python/manylinux201x+ dockerfile: Dockerfile-x86_64_base_2014+ cache_from:+ - ${REPO}:amd64-centos-7.7-python-manylinux2014+ shm_size: *shm-size+ environment:+ PYARROW_PARALLEL: 3+ PYTHON_VERSION: ${PYTHON_VERSION:-3.6}+ UNICODE_WIDTH: ${UNICODE_WIDTH:-16}+ volumes:+ - .:/arrow:delegated+ - ./python/manylinux201x:/io:delegatedcommand: *manylinux-command################################## R ########################################