From 7fb5637714c96073bc700e9dfda605cb691ef9af Mon Sep 17 00:00:00 2001 From: tzing_t Date: Sun, 13 Apr 2025 22:19:25 +0800 Subject: [PATCH] Fix build error, increase the upper limit version of cython (cherry picked from commit bc2b58fdcbc1e1b03150a8ed06b8dd79e079513a) --- ...Increase-the-upper-limit-version-of-cython.patch | 13 +++++++++++++ python-cassandra-driver.spec | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 0002-Increase-the-upper-limit-version-of-cython.patch diff --git a/0002-Increase-the-upper-limit-version-of-cython.patch b/0002-Increase-the-upper-limit-version-of-cython.patch new file mode 100644 index 0000000..be9e07b --- /dev/null +++ b/0002-Increase-the-upper-limit-version-of-cython.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 0e48c3c..966e037 100644 +--- a/setup.py ++++ b/setup.py +@@ -375,7 +375,7 @@ def run_setup(extensions): + # 1.) build_ext eats errors at compile time, letting the install complete while producing useful feedback + # 2.) there could be a case where the python environment has cython installed but the system doesn't have build tools + if pre_build_check(): +- cython_dep = 'Cython>=0.20,!=0.25,<0.30' ++ cython_dep = 'Cython>=0.20,!=0.25' + user_specified_cython_version = os.environ.get('CASS_DRIVER_ALLOWED_CYTHON_VERSION') + if user_specified_cython_version is not None: + cython_dep = 'Cython==%s' % (user_specified_cython_version,) diff --git a/python-cassandra-driver.spec b/python-cassandra-driver.spec index 666b8fd..c595bac 100644 --- a/python-cassandra-driver.spec +++ b/python-cassandra-driver.spec @@ -1,12 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-cassandra-driver Version: 3.29.0 -Release: 1 +Release: 2 Summary: DataStax Driver for Apache Cassandra License: Apache-2.0 URL: http://github.com/datastax/python-driver Source0: https://files.pythonhosted.org/packages/59/28/3e0ea7003910166525304b65a8ffa190666b483c2cc9c38ed5746a25d0fd/cassandra-driver-3.29.0.tar.gz Patch1: 0001-Increase-the-upper-limit-version-of-geomet.patch +Patch2: 0002-Increase-the-upper-limit-version-of-cython.patch %description DataStax Driver for Apache Cassandra @@ -86,6 +87,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Tue Feb 11 2025 tzing_t - 3.29.0-2 +- Fix build error, increase the upper limit version of cython + * Wed Jan 10 2024 Dongxing Wang - 3.29.0-1 - Update package to version 3.29.0 -- Gitee