This is an automated email from the ASF dual-hosted git repository.

assignuser pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 8a357baf76 GH-46041: [Python][Packaging] Temporary remove pandas from 
being installed on free-threaded Windows wheel tests (#46042)
8a357baf76 is described below

commit 8a357baf764b488ebe09f4cd3a193ff99c1a2f6f
Author: Raúl Cumplido <[email protected]>
AuthorDate: Mon Apr 7 22:13:29 2025 +0200

    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]>
---
 .../python-free-threaded-wheel-windows-test-vs2022.dockerfile     | 5 ++++-
 ci/scripts/python_wheel_windows_test.bat                          | 8 +++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git 
a/ci/docker/python-free-threaded-wheel-windows-test-vs2022.dockerfile 
b/ci/docker/python-free-threaded-wheel-windows-test-vs2022.dockerfile
index 4b972999b0..335dcd78f6 100644
--- a/ci/docker/python-free-threaded-wheel-windows-test-vs2022.dockerfile
+++ b/ci/docker/python-free-threaded-wheel-windows-test-vs2022.dockerfile
@@ -38,12 +38,15 @@ SHELL ["cmd", "/S", "/C"]
 RUN %PYTHON_CMD% -m pip install -U pip setuptools
 
 COPY python/requirements-wheel-test.txt C:/arrow/python/
+# Temporarily remove pandas from the requirements, see 
https://github.com/apache/arrow/issues/46041
+RUN findstr /V "pandas" C:\arrow\python\requirements-wheel-test.txt > 
C:\arrow\python\filtered-requirements-wheel-test.txt
 # Cython and Pandas wheels for 3.13 free-threaded are not released yet
+# hadolint ignore=DL3059
 RUN %PYTHON_CMD% -m pip install \
     --extra-index-url 
https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
     --pre \
     --prefer-binary \
-    -r C:/arrow/python/requirements-wheel-test.txt
+    -r C:/arrow/python/filtered-requirements-wheel-test.txt
 # cffi-based tests would crash when importing cffi.
 # hadolint ignore=DL3059
 RUN %PYTHON_CMD% -m pip uninstall -y cffi
diff --git a/ci/scripts/python_wheel_windows_test.bat 
b/ci/scripts/python_wheel_windows_test.bat
index a686215b93..e08b25e3d2 100755
--- a/ci/scripts/python_wheel_windows_test.bat
+++ b/ci/scripts/python_wheel_windows_test.bat
@@ -25,7 +25,13 @@ set PYARROW_TEST_GANDIVA=OFF
 set PYARROW_TEST_GCS=ON
 set PYARROW_TEST_HDFS=ON
 set PYARROW_TEST_ORC=ON
-set PYARROW_TEST_PANDAS=ON
+@REM Temporarily skip pandas for free-threaded tests.
+@REM See https://github.com/apache/arrow/issues/46041
+if "%PYTHON_CMD%" neq "py -3.13t" (
+    set PYARROW_TEST_PANDAS=ON
+) else (
+    echo "Skip PYARROW_TEST_PANDAS for free-threaded"
+)
 set PYARROW_TEST_PARQUET=ON
 set PYARROW_TEST_PARQUET_ENCRYPTION=ON
 set PYARROW_TEST_SUBSTRAIT=ON

Reply via email to