支持使用系统再带的三方库

This commit is contained in:
hangjin2020
2022-05-26 15:58:11 +08:00
parent 4da2bc6e75
commit 090e9e5502
8 changed files with 29 additions and 150 deletions

View File

@ -23,16 +23,18 @@ import re
def checkPythonVersion():
pythonVersion = sys.version_info[0:2]
distName = platform.platform()
if pythonVersion < (3, 0):
raise Exception("[GAUSS-52200] : version of python"
" is not correct: %s." %
distName + " should use Python 3.*")
if re.search("oe1", distName) is not None:
if not pythonVersion == (3, 7):
raise Exception("[GAUSS-52200] : version of python"
" is not correct: %s." %
distName + " should use Python 3.7.*")
print("Warnging version of python doesnot meet the expection, maybe third-party libs "
"need to be compiled by yourself")
else:
if not pythonVersion >= (3, 6):
raise Exception("[GAUSS-52200] : version of python"
" is not correct: %s." %
distName + " should use Python 3.6.*")
if not pythonVersion == (3, 6):
print("Warnging version of python doesnot meet the expection, maybe third-party libs "
"need to be compiled by yourself")
return True