forked from Github/Axter-Stash
Add "--root-user-action ignore" flag to pip command on Docker to cleanup generated error log with warning in Stash
This commit is contained in:
@@ -73,6 +73,7 @@ def installModule(moduleName):
|
|||||||
pipArg = " --disable-pip-version-check"
|
pipArg = " --disable-pip-version-check"
|
||||||
if isDocker():
|
if isDocker():
|
||||||
pipArg += " --break-system-packages"
|
pipArg += " --break-system-packages"
|
||||||
|
pipArg += " --root-user-action ignore"
|
||||||
results = os.popen(f"{sys.executable} -m pip install {moduleName}{pipArg}").read() # May need to be f"{sys.executable} -m pip install {moduleName}"
|
results = os.popen(f"{sys.executable} -m pip install {moduleName}{pipArg}").read() # May need to be f"{sys.executable} -m pip install {moduleName}"
|
||||||
results = results.strip("\n")
|
results = results.strip("\n")
|
||||||
if results.find("Requirement already satisfied:") > -1:
|
if results.find("Requirement already satisfied:") > -1:
|
||||||
|
|||||||
Reference in New Issue
Block a user