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

Get build std streams without verbose output #5879

Closed
vidartf opened this issue Oct 12, 2018 · 3 comments
Closed

Get build std streams without verbose output #5879

vidartf opened this issue Oct 12, 2018 · 3 comments
Labels
auto-locked Outdated issues that have been locked by automation C: logging Information Logging type: feature request Request for a new feature

Comments

@vidartf
Copy link

vidartf commented Oct 12, 2018

What's the problem this feature will solve?
Normally on CI for my package, I install it with pip install -v -e ., using the verbose flag in order to get the log/stdout from my build process. Having the build output available is very useful for when the CI fails for some reason while the build itself does not. However, the verbose flag of pip also includes a lot of other outputs, filling the CI log with typically thousands of lines. What I would like to see is a way to just get the build output, without anything extra from the dependency installation.

Describe the solution you'd like
Conceptually, the simplest solution would be to add a flag for having pip pass through the build output streams. I do not know enough about the internals of pip to say how easy this is to implement though.

Then one would instead call pip install --new-flag -e .

Alternative Solutions

There might be several other ways to do this, but here are a few possibilities I thought of:

  1. If pip had a --only-deps flag, one could do:

    pip install --only-deps . && pip install --no-deps -v -e .
  2. Change verbosity levels to add a step in between. I'm not sure if the mapping between verbosity level and included output is considered stable/fixed. If it is not, then maybe the first verbosity level could be a little less verbose?

  3. Allow CLI options and/or config files for configuring the pip loggers. Since pip cannot be called in-process any more, configuration of the loggers via the python API is now also off-limits. This would be a more general solution, where customizing verbosity would be one of several uses.

  4. When calling pip, one could use the --log option or pipe the output through a filterer that scans for known markers like Running setup.py develop for <package name>. That would require that the specific text of the output could be considered stable though, which I assume it cannot currently?

@cjerdonek cjerdonek added type: enhancement Improvements to functionality C: logging Information Logging labels Oct 26, 2018
@cjerdonek
Copy link
Member

See the related #5900.

@cjerdonek cjerdonek added type: feature request Request for a new feature and removed type: enhancement Improvements to functionality labels Oct 27, 2018
@QuLogic
Copy link

QuLogic commented Mar 24, 2020

Dupe of #5531, I think.

@vidartf
Copy link
Author

vidartf commented Mar 24, 2020

@QuLogic Thanks, closing as duplicate!

@vidartf vidartf closed this as completed Mar 24, 2020
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Apr 25, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: logging Information Logging type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants