__init__.py 文件源码

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

项目:jira_worklog_scanner 作者: pgarneau 项目源码 文件源码
def get_src_requirement(dist, location):
    version_control = vcs.get_backend_from_location(location)
    if version_control:
        try:
            return version_control().get_src_requirement(dist,
                                                         location)
        except BadCommand:
            logger.warning(
                'cannot determine version of editable source in %s '
                '(%s command not found in path)',
                location,
                version_control.name,
            )
            return dist.as_requirement()
    logger.warning(
        'cannot determine version of editable source in %s (is not SVN '
        'checkout, Git clone, Mercurial clone or Bazaar branch)',
        location,
    )
    return dist.as_requirement()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号