I would like to analyze the dependency tree of Python packages. How can I obtain this data?
Things I already know
setup.py sometimes cont
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.