Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to specify the --pip-log path. #2536

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Sep 18, 2024

Although --pip-log is just an alias for the pre-existing
--preserve-pip-download-log option, the option gains the ability to
accept an optional log path value. In addition to this pro-active means
of starting a debuggable Pex session with Pip, the log is also made more
useful in the face of a multi-target resolve by serializing the log on
targets and prefixing log lines per target. The log now also includes
the compatibility tags calculated via pip -v debug ... for any
abbreviated --platforms used in the resolve.

Although `--pip-log` is just an alias for the pre-existing
`--preserve-pip-download-log` option, the option gains the ability to
accept an optional log path value. In addition to this pro-active means
of starting a debuggable Pex session with Pip, the log is also made more
useful in the face of a multi-target resolve by serializing the log on
targets and prefixing log lines per target.
@jsirois jsirois merged commit eda04d2 into pex-tool:main Sep 18, 2024
26 checks passed
@jsirois jsirois deleted the preserve-pip-download-log/improve branch September 18, 2024 02:22
jsirois added a commit to jsirois/pex that referenced this pull request Sep 18, 2024
This fixes a long-standing discrepency between the selected
`--pip-version` and the Pip actually used to determine abbreviated
`--platform` compatibility tags. With the `--pip-log` enhancement
from pex-tool#2536 the calculated abbreviated platform tags are now always
logged to the Pip log, which is very useful for debugging failed
resolves using abbreviated platforms.

Fixes pex-tool#1894
jsirois added a commit that referenced this pull request Sep 18, 2024
This fixes a long-standing discrepency between the selected
`--pip-version` and the Pip actually used to determine abbreviated
`--platform` compatibility tags. With the `--pip-log` enhancement
from #2536 the calculated abbreviated platform tags are now always
logged to the Pip log, which is very useful for debugging failed
resolves using abbreviated platforms.

Fixes #1894
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant