[packages/python-efl] - updated to 1.10.1 - added cython patch (Cython 0.22+ compatibility) - disable cythonize though (th

qboosh qboosh at pld-linux.org
Sun Oct 18 21:26:55 CEST 2015


commit a51b1055d5719dbb0cf36bdc5303c0c33b8cd127
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Oct 18 21:27:58 2015 +0200

    - updated to 1.10.1
    - added cython patch (Cython 0.22+ compatibility)
    - disable cythonize though (there is still some internal Cython issue)

 python-efl-cython.patch | 39 +++++++++++++++++++++++++++++++++++++++
 python-efl.spec         |  8 ++++++--
 2 files changed, 45 insertions(+), 2 deletions(-)
---
diff --git a/python-efl.spec b/python-efl.spec
index b1d7410..e1be900 100644
--- a/python-efl.spec
+++ b/python-efl.spec
@@ -12,12 +12,13 @@
 Summary:	Python bindings for Enlightenment Foundation Libraries
 Summary(pl.UTF-8):	Wiązania Pythona do bibliotek EFL (Enlightenment Foundation Libraries)
 Name:		python-efl
-Version:	1.10.0
+Version:	1.10.1
 Release:	1
 License:	LGPL v3+
 Group:		Development/Languages/Python
 Source0:	http://download.enlightenment.org/rel/bindings/python/%{name}-%{version}.tar.bz2
-# Source0-md5:	4a4f81fbf7d31a37bb96aaeb773d169c
+# Source0-md5:	5f95d3ee5c4bb2a1a616d44d0cc5f0d0
+Patch0:		%{name}-cython.patch
 URL:		http://trac.enlightenment.org/e/wiki/Python
 BuildRequires:	python-dbus-devel >= %{py_dbus_ver}
 BuildRequires:	ecore-devel >= %{ecore_ver}
@@ -216,6 +217,7 @@ Wiązania Pythona do biblioteki Evas.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' \
 	examples/dbus/*.py \
@@ -225,11 +227,13 @@ Wiązania Pythona do biblioteki Evas.
 %build
 CC="%{__cc}" \
 CFLAGS="%{rpmcflags}" \
+DISABLE_CYTHON=1 \
 %{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+DISABLE_CYTHON=1 \
 %{__python} setup.py install \
 	--skip-build \
 	--root=$RPM_BUILD_ROOT \
diff --git a/python-efl-cython.patch b/python-efl-cython.patch
new file mode 100644
index 0000000..6fa646d
--- /dev/null
+++ b/python-efl-cython.patch
@@ -0,0 +1,39 @@
+--- python-efl-1.10.1/efl/ecore/efl.ecore_events.pxi.orig	2014-05-20 21:50:41.000000000 +0200
++++ python-efl-1.10.1/efl/ecore/efl.ecore_events.pxi	2015-10-18 16:42:20.015506777 +0200
+@@ -301,7 +301,7 @@
+ 
+ 
+ cdef class CustomEvent(Event):
+-    cdef int _set_obj(self, void *obj):
++    cdef int _set_obj(self, void *obj) except 0:
+         self.obj = <object>obj
+         return 1
+ 
+@@ -328,14 +328,14 @@
+         self._set_obj(ecore_event_add(type, <void *>self.args, _event_free_cb,
+                       <void*>self))
+ 
+-    cdef int _set_obj(self, Ecore_Event *ev):
++    cdef int _set_obj(self, Ecore_Event *ev) except 0:
+         assert self.obj == NULL, "Object must be clean"
+         assert ev != NULL, "Cannot set NULL as object"
+         self.obj = ev
+         Py_INCREF(self)
+         return 1
+ 
+-    cdef int _unset_obj(self):
++    cdef int _unset_obj(self) except 0:
+         if self.obj != NULL:
+             self.obj = NULL
+             self.args = None
+--- python-efl-1.10.1/efl/ecore/x.pxd.orig	2014-08-18 08:18:36.000000000 +0200
++++ python-efl-1.10.1/efl/ecore/x.pxd	2015-10-18 17:04:57.242145154 +0200
+@@ -1310,7 +1310,7 @@
+ cdef class Window:
+     cdef readonly Ecore_X_Window xid
+ 
+-    cdef int _set_xid(self, Ecore_X_Window xid)
++    cdef int _set_xid(self, Ecore_X_Window xid) except 0
+ 
+ 
+ cdef class EventKey(Event):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-efl.git/commitdiff/a51b1055d5719dbb0cf36bdc5303c0c33b8cd127



More information about the pld-cvs-commit mailing list