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

Indent second level requirements while freezing #2918

Closed
techtonik opened this issue Jun 19, 2015 · 5 comments
Closed

Indent second level requirements while freezing #2918

techtonik opened this issue Jun 19, 2015 · 5 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@techtonik
Copy link
Contributor

While looking at requirement.txt it is often hard to figure out why a particular package is here. Is it feasible with pip to produce indented tree that gives an explanation about why a package is added to the fridge contents.

aspen==0.37
   filesystem_tree==1.0.1
   first==2.0.1
mimeparse==0.1.3

The indented requirements.txt is parsed correctly with pip's.

@jamezpolley
Copy link
Contributor

I can think of two immediate questions

How would this look if aspen and mieparse both have a dependency on filesystem_tree?

How would this look if aspen depends on filesystem_tree which depends on first which depends on second which depends on third which depends on fourth which depends on fifth...

@techtonik
Copy link
Contributor Author

How would this look if aspen and mieparse both have a dependency on filesystem_tree?

The first listed wins if you want to avoid duplication. But you may want to list both, especially if version requirements are different.

How would this look if aspen depends on filesystem_tree which depends on first which depends on second which depends on third which depends on fourth which depends on fifth...

Beautiful.

aspen
  filesystem_tree
    first
      second
        third
          ...

Looks more useful than a plain list, but this is a very rare case.

@piotr-dobrogost
Copy link

FYI the requested feature is the reason https://github.com/naiquevin/pipdeptree was created.

@dstufft
Copy link
Member

dstufft commented Mar 22, 2017

Closing this, this seems to be handled by pipdeptree and ultimately we can't tell why something was installed, so something can be both a dependency and something at the top level with no way to differentiate.

@dstufft dstufft closed this as completed Mar 22, 2017
@techtonik
Copy link
Contributor Author

ultimately we can't tell why something was installed

OS level packaging can do this. Should I open a feature request to support it?

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
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
Projects
None yet
Development

No branches or pull requests

4 participants