Skip to content

Commit 9c664c4

Browse files
committed
Add check for cython>=3.1 as we had on setup.py
1 parent e35d161 commit 9c664c4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

python/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,11 @@ message(STATUS "Found NumPy version: ${Python3_NumPy_VERSION}")
282282
message(STATUS "NumPy include dir: ${NUMPY_INCLUDE_DIRS}")
283283

284284
include(UseCython)
285+
286+
if(CYTHON_VERSION VERSION_LESS "3.1")
287+
message(FATAL_ERROR "Please update your Cython version. Supported Cython >= 3.1, found ${CYTHON_VERSION}"
288+
)
289+
endif()
285290
message(STATUS "Found Cython version: ${CYTHON_VERSION}")
286291

287292
# Arrow C++ and set default PyArrow build options

0 commit comments

Comments
 (0)