Skip to content

Commit 7873a14

Browse files
committed
apacheGH-46516: [CI][Python] Force Cython>3.1.1 if BUILD_DOCS_PYTHON=ON
1 parent 23017e3 commit 7873a14

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎ci/scripts/python_build.sh‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ export PYARROW_PARALLEL=${n_jobs}
7878
export CMAKE_PREFIX_PATH
7979
export LD_LIBRARY_PATH=${ARROW_HOME}/lib:${LD_LIBRARY_PATH}
8080

81+
# https://github.com/apache/arrow/issues/46516
82+
# If we are building docs we force Cython>3.1.1 to avoid numpydoc
83+
# failures due to Cython docstring being wrongly generated.
84+
if [ "${BUILD_DOCS_PYTHON}" == "ON" ]; then
85+
${PYTHON:-python} -m pip install Cython>3.1.1
86+
fi
87+
8188
# https://github.com/apache/arrow/issues/41429
8289
# TODO: We want to out-of-source build. This is a workaround. We copy
8390
# all needed files to the build directory from the source directory

0 commit comments

Comments
 (0)