@@ -1014,7 +1014,7 @@ test_linux_wheels() {
10141014 local arch=" x86_64"
10151015 fi
10161016
1017- local python_versions=" 3.7m 3.8 3.9 3.10"
1017+ local python_versions=" ${TEST_PYTHON_VERSIONS :- 3.7m 3.8 3.9 3.10} "
10181018 local platform_tags=" manylinux_2_17_${arch} .manylinux2014_${arch} "
10191019
10201020 for python in ${python_versions} ; do
@@ -1023,7 +1023,7 @@ test_linux_wheels() {
10231023 show_header " Testing Python ${pyver} wheel for platform ${platform} "
10241024 CONDA_ENV=wheel-${pyver} -${platform} PYTHON_VERSION=${pyver} maybe_setup_conda || exit 1
10251025 VENV_ENV=wheel-${pyver} -${platform} PYTHON_VERSION=${pyver} maybe_setup_virtualenv || continue
1026- pip install pyarrow-${VERSION} -cp${pyver/ .} -cp${python/ .} -${platform} .whl
1026+ pip install pyarrow-${TEST_PYARROW_VERSION :- ${ VERSION} } -cp${pyver/ .} -cp${python/ .} -${platform} .whl
10271027 INSTALL_PYARROW=OFF ARROW_GCS=${check_gcs} ${ARROW_DIR} /ci/scripts/python_wheel_unix_test.sh ${ARROW_SOURCE_DIR}
10281028 done
10291029 done
@@ -1087,23 +1087,31 @@ test_wheels() {
10871087 show_header " Downloading Python wheels"
10881088 maybe_setup_conda python || exit 1
10891089
1090- local download_dir=${ARROW_TMPDIR} /binaries
1091- mkdir -p ${download_dir}
1092-
1093- if [ " $( uname) " == " Darwin" ]; then
1094- local filter_regex=.* macosx.*
1090+ local wheels_dir=
1091+ if [ " ${SOURCE_KIND} " = " local" ]; then
1092+ wheels_dir=" ${ARROW_SOURCE_DIR} /python/repaired_wheels"
10951093 else
1096- local filter_regex=. * manylinux. *
1097- fi
1094+ local download_dir= ${ARROW_TMPDIR} /binaries
1095+ mkdir -p ${download_dir}
10981096
1099- ${PYTHON:- python3} $SOURCE_DIR /download_rc_binaries.py $VERSION $RC_NUMBER \
1100- --package_type python \
1101- --regex=${filter_regex} \
1102- --dest=${download_dir}
1097+ if [ " $( uname) " == " Darwin" ]; then
1098+ local filter_regex=.* macosx.*
1099+ else
1100+ local filter_regex=.* manylinux.*
1101+ fi
11031102
1104- verify_dir_artifact_signatures ${download_dir}
1103+ ${PYTHON:- python3} \
1104+ $SOURCE_DIR /download_rc_binaries.py $VERSION $RC_NUMBER \
1105+ --package_type python \
1106+ --regex=${filter_regex} \
1107+ --dest=${download_dir}
1108+
1109+ verify_dir_artifact_signatures ${download_dir}
1110+
1111+ wheels_dir=${download_dir} /python-rc/${VERSION} -rc${RC_NUMBER}
1112+ fi
11051113
1106- pushd ${download_dir} /python-rc/ ${VERSION} -rc ${RC_NUMBER }
1114+ pushd ${wheels_dir }
11071115
11081116 if [ " $( uname) " == " Darwin" ]; then
11091117 test_macos_wheels
0 commit comments