pkgsrc-WIP-changes archive

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

py-coala: require py-print and try to workaround setup.py bug



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Oct 8 01:49:50 2017 +0200
Changeset:	0c38d4946284b57a1259c97683faaf83b0319af1

Modified Files:
	py-coala/Makefile
	py-coala/distinfo
Added Files:
	py-coala/patches/patch-setup.py

Log Message:
py-coala: require py-print and try to workaround setup.py bug

For some reason there is uncaught exception, workaround it by making
a more generic exception handler that fixes locale setting on NetBSD.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0c38d4946284b57a1259c97683faaf83b0319af1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-coala/Makefile               |  1 +
 py-coala/distinfo               |  1 +
 py-coala/patches/patch-setup.py | 13 +++++++++++++
 3 files changed, 15 insertions(+)

diffs:
diff --git a/py-coala/Makefile b/py-coala/Makefile
index 6de5dc8d38..2144c8b6f2 100644
--- a/py-coala/Makefile
+++ b/py-coala/Makefile
@@ -14,6 +14,7 @@ LICENSE=	gnu-agpl-v3
 PYTHON_VERSIONS_INCOMPATIBLE=   27
 
 DEPENDS+=	${PYPKGPREFIX}-appdirs-[0-9]*:../../devel/py-appdirs
+DEPENDS+=	${PYPKGPREFIX}-print-[0-9]*:../../wip/py-print
 
 .include "../../lang/python/application.mk"
 .include "../../lang/python/distutils.mk"
diff --git a/py-coala/distinfo b/py-coala/distinfo
index e8b8634aba..08cee3aa3a 100644
--- a/py-coala/distinfo
+++ b/py-coala/distinfo
@@ -4,3 +4,4 @@ SHA1 (coala-0.11.0.tar.gz) = 388725ebd6ecca6494200c2b23f3d8cd5d92b193
 RMD160 (coala-0.11.0.tar.gz) = e2939df65034d302ec768f150b931b2c5d2cdc70
 SHA512 (coala-0.11.0.tar.gz) = 06252bdb1dc1436b9c6a81a7def5c88bf62c11ba75767f4e5e7db41300e4d107bca7a2c8c67e8c757bae2caf9bc591a944122255fb8c9137839afd9f145924a7
 Size (coala-0.11.0.tar.gz) = 687049 bytes
+SHA1 (patch-setup.py) = 0701250e0ad80b5d710c69c36edd9c5ee489c894
diff --git a/py-coala/patches/patch-setup.py b/py-coala/patches/patch-setup.py
new file mode 100644
index 0000000000..0f83c61191
--- /dev/null
+++ b/py-coala/patches/patch-setup.py
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- setup.py.orig	2017-05-22 13:43:12.000000000 +0000
++++ setup.py
+@@ -19,7 +19,7 @@ try:
+     pf = platform.system()
+     if pf != 'Windows' and lc == (None, None):
+         locale.setlocale(locale.LC_ALL, 'C.UTF-8')
+-except (ValueError, UnicodeError):
++except:
+     locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
+ 
+ 


Home | Main Index | Thread Index | Old Index