CASSANDRA-20997: Add assertion for Python 3.12+ Cython incompatibility in setup.py

This commit is contained in:
Arvind Kandpal 2026-07-02 10:52:12 +05:30
parent e4162cef5a
commit 79cd86f664
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ def get_extensions():
if "--no-compile" in sys.argv:
return []
assert sys.version_info < (3, 12), "Cython < 3.0 is incompatible with Python 3.12+ C-API changes. See CASSANDRA-21482."
from Cython.Build import cythonize
return cythonize("cqlshlib/copyutil.py")