From b68edc07f0d67723ef11d1081de9e7f46564038c Mon Sep 17 00:00:00 2001 From: Isac Arnekvist Date: Fri, 29 Apr 2016 13:27:42 +0200 Subject: [PATCH 1/2] Set encoding when opening README.rst This is a problem when LC_ALL=C for example. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 74d6d04a5..64d04ca8c 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ HERE = path.abspath(path.dirname(__file__)) -with open(path.join(HERE, 'README.rst')) as f: +with open(path.join(HERE, 'README.rst'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read().strip() # Visual C++ apparently doesn't respect/know what to do with this flag. From 7e09309c9049c6ec1688abba73ea73cab64f5212 Mon Sep 17 00:00:00 2001 From: Isac Arnekvist Date: Sat, 30 Apr 2016 22:30:03 +0200 Subject: [PATCH 2/2] setup.py: encoding keyword for python 2.x 3.x --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 64d04ca8c..2622188cf 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Installation script.""" +from io import open from os import path import sys from setuptools import find_packages, setup