Update setup.py

pull/4019/head
张春乔 6 months ago committed by GitHub
parent f357ec6172
commit 4bb19e4d50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -53,9 +53,9 @@ def determine_opencc_version():
gcc_version = None gcc_version = None
# determine opencc version # determine opencc version
if gcc_version: # if gcc_version:
if int(gcc_version.split(".")[0]) < 9: # if int(gcc_version.split(".")[0]) < 9:
return "opencc==1.1.6" # GCC<9 need opencc==1.1.6 # return "opencc==1.1.6" # GCC<9 need opencc==1.1.6
return "opencc" # default return "opencc" # default

Loading…
Cancel
Save