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:
Chris King
2025-02-16 01:47:10 -08:00
parent 85104e6b15
commit d2eb18e217

View File

@@ -73,6 +73,7 @@ def installModule(moduleName):
pipArg = " --disable-pip-version-check"
if isDocker():
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 = results.strip("\n")
if results.find("Requirement already satisfied:") > -1: