https://pantsbuild.org/ logo
a

abundant-autumn-67998

03/14/2023, 10:16 PM
When running pex, is there a way to redirect the pip log output to stdout when running pex? sometimes it prints backtracking warnings and would be nice see them on the console.
c

curved-television-6568

03/14/2023, 10:20 PM
not sure if it’ll include all pip logs.. but there’s a ton of logs to be had at least
e

enough-analyst-54434

03/14/2023, 10:27 PM
I think the answer is no. @curved-television-6568 may be right at verbosity 9 level, but IIRC you must use
--preserve-pip-download-log
to get the log retained in a file to look at after the fact.
a

abundant-autumn-67998

03/14/2023, 10:46 PM
with
PEX_VERBOSE
I have seen the internal pex command that exposed the
--log /path/to/pip.log
which is how i found the problem. however we often run these in an automated environment and a
--pip-log-to-stdout
would be useful.
e

enough-analyst-54434

03/14/2023, 10:54 PM
You should file a feature request. This is not as easy as it seems since Pex needs the full verbose Pip log for analysis. There is a Pex log tailer / tee implementation though for groundwork.