修改了python编译环境校验,取消了-fPIC参数校验

This commit is contained in:
chen-czywj
2023-03-09 14:54:53 +08:00
parent 852feaafb7
commit 539c7d72b2

View File

@ -32,9 +32,9 @@ def checkPythonVersion():
def check_python_compiler_option():
config_args = sysconfig.get_config_var("CONFIG_ARGS")
if "--enable-shared" and "-fPIC" not in config_args:
if "--enable-shared" not in config_args:
raise Exception("[GAUSS-52200] : When compiling python, \
carry the -enable-shared and -fpic parameters")
carry the -enable-shared parameters")
return True