Fix encoding error in setup.py

This commit is contained in:
Matthew Honnibal 2016-10-19 00:05:53 +02:00
parent 2bbb050500
commit 818dc83e26

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
from __future__ import print_function from __future__ import print_function
from __future__ import unicode_literals
import os import os
import subprocess import subprocess
import sys import sys
@ -153,11 +154,11 @@ def setup_package():
return clean(root) return clean(root)
with chdir(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 = {} about = {}
exec(f.read(), 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() readme = f.read()
include_dirs = [ include_dirs = [