How to extract dependencies information from a setup.py
问题 I have a python project, let's call it foobar , there is a setup.py script in project root directory like all Python projects. For example foobar setup.py setup.py file content: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='foobar', version='0.0.0', packages=find_packages(), install_requires=[ 'spam==1.2.3', 'eggs>=4.5.6', ], ) I need to get dependencies information from that setup.py file using Python. The part I want would be [