Fix build error, increase the upper limit version of cython

(cherry picked from commit bc2b58fdcbc1e1b03150a8ed06b8dd79e079513a)
This commit is contained in:
tzing_t 2025-04-13 22:19:25 +08:00 committed by openeuler-sync-bot
parent 15a873e337
commit 7fb5637714
2 changed files with 18 additions and 1 deletions

View File

@ -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,)

View File

@ -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 <zhengting13@huawei.com> - 3.29.0-2
- Fix build error, increase the upper limit version of cython
* Wed Jan 10 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 3.29.0-1
- Update package to version 3.29.0