Add debug logging for pip install command (#61057)

pull/61068/head
Allen Porter 2021-12-05 13:30:02 -08:00 committed by GitHub
parent 5bd1139867
commit ab75efda9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ def install_package(
# Workaround for incompatible prefix setting
# See http://stackoverflow.com/a/4495175
args += ["--prefix="]
_LOGGER.debug("Running pip command: args=%s", args)
with Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env) as process:
_, stderr = process.communicate()
if process.returncode != 0: