Python package dependency tree

前端 未结 3 647
情深已故
情深已故 2020-12-24 02:39

I would like to analyze the dependency tree of Python packages. How can I obtain this data?

Things I already know

  1. setup.py sometimes cont
3条回答
  •  无人及你
    2020-12-24 03:24

    You should be looking at the install_requires field instead, see New and changed setup keywords.

    requires is deemed too vague a field to rely on for dependency installation. In addition, there are setup_requires and test_requires fields for dependencies required for setup.py and for running tests.

    Certainly, the dependency graph has been analyzed before; from this blog article by Olivier Girardot comes this fantastic image:


    The image is linked to the interactive version of the graph.

提交回复
热议问题