1 parent 9baee4e commit 8d0a83cCopy full SHA for 8d0a83c
1 file changed
python/setup.py
@@ -5,9 +5,13 @@
5
from distutils import ccompiler
6
import os,sys
7
import shutil,os
8
+import platform
9
+
10
if sys.version_info < (3, 0):
11
with open("README.md", "r") as fh:
12
long_description = fh.read()
13
+ if platform.system() == 'Windows':
14
+ long_description = long_description.decode("utf8").encode("gbk")
15
else:
16
with open("README.md", "r", encoding='utf-8') as fh:
17
0 commit comments