[arch-commits] Commit in python-kivy/trunk (PKGBUILD py38.patch)

Felix Yan felixonmars at archlinux.org
Sun Nov 10 07:58:42 UTC 2019


    Date: Sunday, November 10, 2019 @ 07:58:42
  Author: felixonmars
Revision: 524932

fix py38 test failures and hang

Added:
  python-kivy/trunk/py38.patch
Modified:
  python-kivy/trunk/PKGBUILD

------------+
 PKGBUILD   |    7 +++++--
 py38.patch |   16 ++++++++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-10 07:10:38 UTC (rev 524931)
+++ PKGBUILD	2019-11-10 07:58:42 UTC (rev 524932)
@@ -15,8 +15,10 @@
 checkdepends=('python-pytest' 'python-coverage' 'python-gobject' 'xorg-server-xvfb' 'opencv' 'python-pyenchant'
               'git' 'mtdev' 'xclip' 'xsel' 'gtk3' 'gst-plugins-base'
               'gst-plugins-good' 'gst-libav' 'python-dbus')
-source=("https://pypi.io/packages/source/K/Kivy/Kivy-$pkgver.tar.gz")
-sha512sums=('d6b34668d9ad9196edcb9a8307d6659868a8f72580018d873bc6e91823461c853c3c92758c0c3013b25faa177dd62ab5d12671411822112b13a9610e4eda3eb0')
+source=("https://pypi.io/packages/source/K/Kivy/Kivy-$pkgver.tar.gz"
+        py38.patch)
+sha512sums=('d6b34668d9ad9196edcb9a8307d6659868a8f72580018d873bc6e91823461c853c3c92758c0c3013b25faa177dd62ab5d12671411822112b13a9610e4eda3eb0'
+            'a128a81d3f7124339feb65c93eff6023174ae67db31b5eb3787046c906b03fd155e768d0342d0e8df1a3d2c739e3a90d3d31d8f43d8cb15ffdf5aba97ceda593')
 
 # For better metadata
 export KIVY_USE_SETUPTOOLS=1
@@ -26,6 +28,7 @@
 prepare() {
   # Remove max cython version limit
   sed -i 's/,<={max_version}//' Kivy-$pkgver/setup.py # Kivy-$pkgver/kivy/tools/packaging/cython_cfg.py
+  patch -d Kivy-$pkgver/kivy -p1 -i ../../py38.patch
 }
 
 build() {

Added: py38.patch
===================================================================
--- py38.patch	                        (rev 0)
+++ py38.patch	2019-11-10 07:58:42 UTC (rev 524932)
@@ -0,0 +1,16 @@
+diff --git a/weakmethod.py.orig b/weakmethod.py
+index 4638abf..54bdc1b 100644
+--- a/weakmethod.py.orig
++++ b/weakmethod.py
+@@ -53,7 +53,10 @@ if sys.version > '3':
+             '''Returns True if the referenced callable was a bound method and
+             the instance no longer exists. Otherwise, return False.
+             '''
+-            return self.proxy is not None and not bool(dir(self.proxy))
++            try:
++                return self.proxy is not None and not bool(dir(self.proxy))
++            except ReferenceError:
++                return True
+ 
+         def __eq__(self, other):
+             try:



More information about the arch-commits mailing list