Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-appdirs py-appdirs: fix build with python 3.6.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9003d6f605c3
branches:  trunk
changeset: 435955:9003d6f605c3
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jul 21 10:15:39 2020 +0000

description:
py-appdirs: fix build with python 3.6.

diffstat:

 devel/py-appdirs/distinfo                 |   3 ++-
 devel/py-appdirs/patches/patch-appdirs.py |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r cff8d7010503 -r 9003d6f605c3 devel/py-appdirs/distinfo
--- a/devel/py-appdirs/distinfo Tue Jul 21 08:14:32 2020 +0000
+++ b/devel/py-appdirs/distinfo Tue Jul 21 10:15:39 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2020/07/08 14:45:48 adam Exp $
+$NetBSD: distinfo,v 1.5 2020/07/21 10:15:39 wiz Exp $
 
 SHA1 (appdirs-1.4.4.tar.gz) = 1fa04e44b1084338cb7b21e9cf44fce5efb81840
 RMD160 (appdirs-1.4.4.tar.gz) = 9cb319eaad2555f163855a2d14bc8104f741496e
 SHA512 (appdirs-1.4.4.tar.gz) = 8b0cdd9fd471d45b186aa47607691cf378dabd3edc7b7026a57bd6d6f57698e86f440818a5e23ba4288b35d6bb8cb6eb0106eae8aab09d8863ee15025d300883
 Size (appdirs-1.4.4.tar.gz) = 13470 bytes
+SHA1 (patch-appdirs.py) = 1e46bd11ddfed14db104659d8463d14f09db9eaf
diff -r cff8d7010503 -r 9003d6f605c3 devel/py-appdirs/patches/patch-appdirs.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-appdirs/patches/patch-appdirs.py Tue Jul 21 10:15:39 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-appdirs.py,v 1.1 2020/07/21 10:15:39 wiz Exp $
+
+Only use ASCII, to avoid with python36:
+
+Traceback (most recent call last):
+  File "setup.py", line 25, in <module>
+    for line in read("appdirs.py").splitlines():
+  File "setup.py", line 19, in read
+    out = "\n" + inf.read().replace("\r\n", "\n")
+  File "/usr/pkg/lib/python3.6/encodings/ascii.py", line 26, in decode
+    return codecs.ascii_decode(input, self.errors)[0]
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xc8 in position 129: ordinal not in range(128)
+
+--- appdirs.py.orig    2020-05-10 23:54:42.000000000 +0000
++++ appdirs.py
+@@ -1,7 +1,7 @@
+ #!/usr/bin/env python
+ # -*- coding: utf-8 -*-
+ # Copyright (c) 2005-2010 ActiveState Software Inc.
+-# Copyright (c) 2013 Eddy Petrișor
++# Copyright (c) 2013 Eddy Petrisor
+ 
+ """Utilities for determining application-specific dirs.
+ 


Home | Main Index | Thread Index | Old Index