test_mu.py 文件源码

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

项目:cloud-custodian 作者: capitalone 项目源码 文件源码
def _install_namespace_package(self, tmp_sitedir):
        # Install our test namespace package in such a way that both py27 and
        # py36 can find it.
        from setuptools import namespaces
        installer = namespaces.Installer()
        class Distribution: namespace_packages = ['namespace_package']
        installer.distribution = Distribution()
        installer.target = os.path.join(tmp_sitedir, 'namespace_package.pth')
        installer.outputs = []
        installer.dry_run = False
        installer.install_namespaces()
        site.addsitedir(tmp_sitedir, known_paths=site._init_pathinfo())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号