File:  [cvs.NetBSD.org] / pkgsrc / textproc / py-markovify / patches / Attic / patch-setup.py
Revision 1.1: download - view: text, annotated - select for diffs
Tue Aug 11 18:43:20 2020 UTC (4 years, 2 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD
Fix Python 3.6 build.

$NetBSD: patch-setup.py,v 1.1 2020/08/11 18:43:20 joerg Exp $

--- setup.py.orig	2020-06-17 13:28:07.000000000 +0000
+++ setup.py
@@ -8,7 +8,7 @@ version_ns = {}
 with open(os.path.join(HERE, NAME, '__version__.py')) as f:
     exec(f.read(), {}, version_ns)
 
-with open(os.path.join(HERE, 'README.md')) as f:
+with open(os.path.join(HERE, 'README.md'), **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as f:
     long_description = f.read()
 
 setup(

CVSweb <webmaster@jp.NetBSD.org>