From 377db4f420fedf36156be88c6ea7ea14f999c582 Mon Sep 17 00:00:00 2001 From: tzing_t Date: Tue, 11 Feb 2025 11:59:20 +0000 Subject: [PATCH] increase the upper limit version of cython --- ...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 9ae9202..4dfe32f 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.2 -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/b2/6f/d25121afaa2ea0741d05d2e9921a7ca9b4ce71634b16a8aaee21bd7af818/cassandra-driver-3.29.2.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.2-2 +- Fix build error, increase the upper limit version of cython + * Sat Oct 12 2024 liudy - 3.29.2-1 - Update package to version 3.29.2 -- Gitee