From 818dc83e26473c9f69143075515bd687d9d4c2ef Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 19 Oct 2016 00:05:53 +0200 Subject: [PATCH] Fix encoding error in setup.py --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index da600f235..7491b4324 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ #!/usr/bin/env python from __future__ import print_function +from __future__ import unicode_literals import os import subprocess import sys @@ -153,11 +154,11 @@ def setup_package(): return clean(root) with chdir(root): - with open(os.path.join(root, 'spacy', 'about.py')) as f: + with io.open(os.path.join(root, 'spacy', 'about.py'), encoding='utf8') as f: about = {} exec(f.read(), about) - with open(os.path.join(root, 'README.rst')) as f: + with io.open(os.path.join(root, 'README.rst'), encoding='utf8') as f: readme = f.read() include_dirs = [