From 12fa6c523b77a2a05d14c3741d33eb2b3cbcc53c Mon Sep 17 00:00:00 2001 From: Matt Porritt Date: Tue, 19 May 2015 15:09:22 +1000 Subject: [PATCH] explicitly set file open to user utf8 encoding when setup.py parses README and CHANGES file. If this is not done some systems will throw unicode can't decode byte error --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0b6a1a7..73c80d5 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ REQUIREMENTS = [ HERE = dirname(abspath(__file__)) -DESCRIPTION = '\n\n'.join(open(join(HERE, _)).read() for _ in [ +DESCRIPTION = '\n\n'.join(open(join(HERE, _), encoding="utf8").read() for _ in [ 'README.rst', 'CHANGES.rst', ])