Skip to content

Commit 55be8c0

Browse files
authored
GH-47256: [Python] Do not use cffi in free-threaded 3.13 builds (#47313)
### Rationale for this change Ubuntu and Windows wheels started failing on free-threaded build of CPython 3.13 due to cffi not supporting free-threaded CPython 3.13. ### What changes are included in this PR? Free-threaded 3.13 builds use separate requirements with no cffi. ### Are these changes tested? Yes, with the extended builds. ### Are there any user-facing changes? No. * GitHub Issue: #47256 Authored-by: AlenkaF <frim.alenka@gmail.com> Signed-off-by: AlenkaF <frim.alenka@gmail.com>
1 parent 590d43f commit 55be8c0

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

ci/docker/linux-apt-python-313-freethreading.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN apt-get update -y -q && \
2727
rm -rf /var/lib/apt/lists*
2828

2929
COPY python/requirements-build.txt \
30-
python/requirements-test.txt \
30+
python/requirements-test-3.13t.txt \
3131
/arrow/python/
3232

3333
ENV ARROW_PYTHON_VENV /arrow-dev
@@ -38,7 +38,7 @@ RUN ${ARROW_PYTHON_VENV}/bin/python -m pip install \
3838
--prefer-binary \
3939
--extra-index-url "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" \
4040
-r arrow/python/requirements-build.txt \
41-
-r arrow/python/requirements-test.txt
41+
-r arrow/python/requirements-test-3.13t.txt
4242

4343
# We want to run the PyArrow test suite with the GIL disabled, but cffi
4444
# (more precisely, the `_cffi_backend` module) currently doesn't declare

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,13 @@ ENV PYTHON_CMD="py -${python}t"
3737
SHELL ["cmd", "/S", "/C"]
3838
RUN %PYTHON_CMD% -m pip install -U pip setuptools
3939

40-
COPY python/requirements-wheel-test.txt C:/arrow/python/
40+
COPY python/requirements-wheel-test-3.13t.txt C:/arrow/python/
4141
# Cython and Pandas wheels for 3.13 free-threaded are not released yet
4242
RUN %PYTHON_CMD% -m pip install \
4343
--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
4444
--pre \
4545
--prefer-binary \
46-
-r C:/arrow/python/requirements-wheel-test.txt
47-
# cffi-based tests would crash when importing cffi.
48-
# hadolint ignore=DL3059
49-
RUN %PYTHON_CMD% -m pip uninstall -y cffi
46+
-r C:/arrow/python/requirements-wheel-test-3.13t.txt
5047

5148
ENV PYTHON="${python}t"
5249
ENV PYTHON_GIL=0

python/requirements-test-3.13t.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
hypothesis
2+
packaging
3+
pandas
4+
pytest
5+
pytz
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cython
2+
hypothesis
3+
numpy~=2.1.0
4+
packaging
5+
pandas
6+
pytest
7+
pytz
8+
requests; sys_platform == 'win32'
9+
tzdata; sys_platform == 'win32'

0 commit comments

Comments
 (0)