test_find_distributions.py 文件源码

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

项目:setuptools 作者: pypa 项目源码 文件源码
def test_standalone_egg_directory(self, project_dir, target_dir):
        # install this distro as an unpacked egg:
        args = [
            sys.executable,
            '-c', 'from setuptools.command.easy_install import main; main()',
            '-mNx',
            '-d', target_dir,
            '--always-unzip',
            project_dir,
        ]
        subprocess.check_call(args)
        dists = pkg_resources.find_distributions(target_dir)
        assert [dist.project_name for dist in dists] == ['my-test-package']
        dists = pkg_resources.find_distributions(target_dir, only=True)
        assert not list(dists)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号