collect.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:pytest-nodev 作者: nodev-io 项目源码 文件源码
def collect_installed_distributions():
    """Yield the normalized spec and the names of top_level modules of all installed packages."""
    for distribution in pkg_resources.working_set:
        distribution_spec = str(distribution.as_requirement())
        distribution_top_level = guess_top_level(distribution)
        yield distribution_spec, distribution_top_level
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号