:mega: PSA for folks here, TIL about <this approac...
# general
p
📣 PSA for folks here, TIL about this approach from Andreas to looking at raw pip logs while running
pants generate-lockfiles
. It would be nice to have these logs exposed or saved in some way. Some context in /🧵
☝️ 1
Was looking for way to print more output than
Generate lockfile for ...
when running
pants generate-lockfiles
. We have a case where adding new pip packages caused an incompatibility with existing packages in the resolve and (I think) what pip is doing is trying to install many of package versions to find a compatible one
(This has been an issue for our other python projects since pip introduced their new dependency resolver.)
Generate lockfiles command never finishes. The problem is, we were flying blind and didn’t know which pip package is the problem. Tried slapping the
-ldebug
,
--print-stacktrace
, and
--pex-verbosity=9
but didn’t get anything useful to track down the problematic pip package until we looked at those (ephemeral) pip logs
h
It might make sense to (in debug mode at least) to output the location of the pip log file?
p
I, for one, would find that helpful, yes!
h
It shouldn't be hard to add if you want to send a PR!
We can give guidance
p
I’d love to get involved. As with all things, I’ll need to find the time (aka to make that a priority) to understand the codebase first
h
This one should be pretty straightforward, fortunately
👍 1