Skip to content

Add ability to list sizes of dependencies #391

@notexactlyawe

Description

@notexactlyawe

Describe the feature

Searching for duplicate issues, I found that #108 was closed for lack of a specific use case.

I would like to use pipdeptree to help optimize the size of a pyinstaller executable. It's currently great for seeing what dependencies are present in a project, but it doesn't show the sizes of those dependencies.

Size, to me, is anything that helps me determine the "cost" of a dependency in my final executable. I would like to use it to answer questions like, "Which dependency should I try to remove first to get the size of my executable down?".

A potential metric for this might be wheel size. pip seems to know about this at install time:

...
Collecting virtualenv>=20.25 (from tox->-r .\requirements-dev.txt (line 6))
  Using cached <some pypi>/virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions