Skip to content

pip config debug doesn't separate the configuration shown for different files at the same "level" #12099

@pradyunsg

Description

@pradyunsg

Description

pip config debug doesn't correctly separate options as set by the different files.

env_var:
env:
global:
  /Library/Application Support/pip/pip.conf, exists: False
site:
  /Users/pgedam/Developer/github/pip/.venv/pip.conf, exists: False
user:
  /home/pgedam/.pip/pip.conf, exists: True
    install.require-virtualenv: true
    global.timeout: 60
  /home/pgedam/.config/pip/pip.conf, exists: True
    install.require-virtualenv: true
    global.timeout: 60

Expected behavior

It should show which configuration options are loaded from which file:

env_var:
env:
global:
  /Library/Application Support/pip/pip.conf, exists: False
site:
  /Users/pgedam/Developer/github/pip/.venv/pip.conf, exists: False
user:
  /home/pgedam/.pip/pip.conf, exists: True
    install.require-virtualenv: true
  /home/pgedam/.config/pip/pip.conf, exists: True
    global.timeout: 60

pip version

main, 20.3+

Python version

N/A

OS

N/A

How to Reproduce

  1. Create two configuration files as a user.
  2. Provide different configuration values in them.
  3. Run pip config debug and see the output.

Output

(in description)

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: configurationConfiguration management and loadingC: outputRelated to what pip printstype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions