mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Fix encoding error in setup.py
This commit is contained in:
parent
2bbb050500
commit
818dc83e26
5
setup.py
5
setup.py
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user