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

Debug mode #802

Closed
blueyed opened this issue Apr 30, 2019 · 3 comments
Closed

Debug mode #802

blueyed opened this issue Apr 30, 2019 · 3 comments
Labels
feature Request for a new feature needs discussion Need some more discussion

Comments

@blueyed
Copy link
Contributor

blueyed commented Apr 30, 2019

When debugging issues pip-tools should be more helpful:

  1. print/log executed commands, e.g. https:/pypa/pip/blob/f8732ac06dcb7c6af81dcdc0cc3158196b796baf/src/pip/_internal/utils/misc.py#L721 - pip appears to have some logging for this (see the --log option), which could be configured for this
  2. keep build directories, so that you can run the setup commands from there. Currently pip cleans them up.

This could be triggered through PIPTOOLS_DEBUG in the environment, -vv, or a new --debug option.

It might be worth/good to have this with pip itself via an environment already, i.e. PIP_DEBUG=1 would behave like using --log=/dev/stderr.

pip's logging get setup here: https:/pypa/pip/blob/f8732ac06dcb7c6af81dcdc0cc3158196b796baf/src/pip/_internal/cli/base_command.py#L133-L137

@atugushev
Copy link
Member

Hello @blueyed,

Sounds reasonable!

2. keep build directories, so that you can run the setup commands from there. Currently pip cleans them up.

Do you know how to force pip to keep build directories?

@atugushev atugushev added the feature Request for a new feature label May 4, 2019
@atugushev atugushev added the needs discussion Need some more discussion label Sep 19, 2019
@atugushev
Copy link
Member

Related to #321

@atugushev
Copy link
Member

atugushev commented Apr 12, 2020

#1080 introduced --pip-args, so now any additional pip's options can be passed, e.g.:

$ pip-compile --pip-args="--no-clean -vv"

I'll close this then. Feel free to reopen if it doesn't resolve the issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request for a new feature needs discussion Need some more discussion
Projects
None yet
Development

No branches or pull requests

2 participants