Skip to content

Commit 487d0b3

Browse files
raulcdassignUser
authored andcommitted
GH-46041: [Python][Packaging] Temporary remove pandas from being installed on free-threaded Windows wheel tests (#46042)
### Rationale for this change Pandas is currently not providing nightly wheels for free-threaded wheels. It has been failing for a while on their nightly channels and built wheels have been removed. Building from source fails on our free-threaded job. In order to provide our pyarrow Windows free-threaded wheels for 20.0.0 we temporarily disable installing pandas and testing pandas on free-threaded. ### What changes are included in this PR? Temporarily disable pandas from being installed and tested on the Windows free-threaded wheel. ### Are these changes tested? Via archery ### Are there any user-facing changes? No * GitHub Issue: #46041 Authored-by: Raúl Cumplido <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
1 parent caf885b commit 487d0b3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

ci/docker/python-free-threaded-wheel-windows-test-vs2022.dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ SHELL ["cmd", "/S", "/C"]
3838
RUN %PYTHON_CMD% -m pip install -U pip setuptools
3939

4040
COPY python/requirements-wheel-test.txt C:/arrow/python/
41+
# Temporarily remove pandas from the requirements, see https://github.com/apache/arrow/issues/46041
42+
RUN findstr /V "pandas" C:\arrow\python\requirements-wheel-test.txt > C:\arrow\python\filtered-requirements-wheel-test.txt
4143
# Cython and Pandas wheels for 3.13 free-threaded are not released yet
44+
# hadolint ignore=DL3059
4245
RUN %PYTHON_CMD% -m pip install \
4346
--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
4447
--pre \
4548
--prefer-binary \
46-
-r C:/arrow/python/requirements-wheel-test.txt
49+
-r C:/arrow/python/filtered-requirements-wheel-test.txt
4750
# cffi-based tests would crash when importing cffi.
4851
# hadolint ignore=DL3059
4952
RUN %PYTHON_CMD% -m pip uninstall -y cffi

ci/scripts/python_wheel_windows_test.bat

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ set PYARROW_TEST_GANDIVA=OFF
2525
set PYARROW_TEST_GCS=ON
2626
set PYARROW_TEST_HDFS=ON
2727
set PYARROW_TEST_ORC=ON
28-
set PYARROW_TEST_PANDAS=ON
28+
@REM Temporarily skip pandas for free-threaded tests.
29+
@REM See https://github.com/apache/arrow/issues/46041
30+
if "%PYTHON_CMD%" neq "py -3.13t" (
31+
set PYARROW_TEST_PANDAS=ON
32+
) else (
33+
echo "Skip PYARROW_TEST_PANDAS for free-threaded"
34+
)
2935
set PYARROW_TEST_PARQUET=ON
3036
set PYARROW_TEST_PARQUET_ENCRYPTION=ON
3137
set PYARROW_TEST_SUBSTRAIT=ON

0 commit comments

Comments
 (0)