[packages/python-cassandra] - rel 3; fix build with new cython (are pxd/pyx files supposed to be packaged?)
arekm
arekm at pld-linux.org
Sun Jan 1 15:26:22 CET 2017
commit aabebf2e2809af2b294a22b6918156c239cedacc
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Jan 1 15:26:15 2017 +0100
- rel 3; fix build with new cython (are pxd/pyx files supposed to be packaged?)
python-cassandra-build.patch | 11 +++++++++++
python-cassandra.spec | 8 +++++++-
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/python-cassandra.spec b/python-cassandra.spec
index 844d71d..1812e29 100644
--- a/python-cassandra.spec
+++ b/python-cassandra.spec
@@ -14,11 +14,12 @@ Summary: A Python client driver for Apache Cassandra
Summary(pl.UTF-8): Moduł Pythona dla klientów Apache Cassandra
Name: python-%{module}
Version: 3.7.1
-Release: 2
+Release: 3
License: Apache v2.0
Group: Libraries/Python
Source0: https://github.com/datastax/python-driver/archive/%{version}.tar.gz
# Source0-md5: 6c451069c85490b0f78dcb1f0a0cda5f
+Patch0: %{name}-build.patch
URL: http://github.com/datastax/python-driver
BuildRequires: libev-devel
BuildRequires: rpm-pythonprov
@@ -98,6 +99,7 @@ Dokumentacja API %{module}.
%prep
%setup -q -n python-driver-%{version}
+%patch0 -p1
%build
%if %{with python2}
@@ -134,6 +136,8 @@ rm -rf $RPM_BUILD_ROOT
%doc README.rst
%dir %{py_sitedir}/%{module}
%{py_sitedir}/%{module}/*.py[co]
+%{py_sitedir}/%{module}/*.pxd
+%{py_sitedir}/%{module}/*.pyx
%attr(755,root,root) %{py_sitedir}/%{module}/*.so
%dir %{py_sitedir}/%{module}/cqlengine
%{py_sitedir}/%{module}/cqlengine/*.py[co]
@@ -151,6 +155,8 @@ rm -rf $RPM_BUILD_ROOT
%doc README.rst
%dir %{py3_sitedir}/%{module}
%{py3_sitedir}/%{module}/*.py
+%{py3_sitedir}/%{module}/*.pxd
+%{py3_sitedir}/%{module}/*.pyx
%attr(755,root,root) %{py3_sitedir}/%{module}/*.cpython-*.so
%{py3_sitedir}/%{module}/__pycache__/
%dir %{py3_sitedir}/%{module}/io
diff --git a/python-cassandra-build.patch b/python-cassandra-build.patch
new file mode 100644
index 0000000..07eefb7
--- /dev/null
+++ b/python-cassandra-build.patch
@@ -0,0 +1,11 @@
+--- python-driver-3.7.1/setup.py~ 2016-10-26 17:00:31.000000000 +0200
++++ python-driver-3.7.1/setup.py 2016-12-29 22:42:29.223605087 +0100
+@@ -388,7 +388,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():
+- kw['setup_requires'] = ['Cython>=0.20,<0.25']
++ kw['setup_requires'] = ['Cython>=0.20,<0.26']
+ else:
+ sys.stderr.write("Bypassing Cython setup requirement\n")
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-cassandra.git/commitdiff/aabebf2e2809af2b294a22b6918156c239cedacc
More information about the pld-cvs-commit
mailing list