从本地SVN结帐处安装点子软件包

问题描述

| 我的svn存储库中有另一个python项目(具有setup.py等)的克隆。我要安装告诉pip从该目录安装。但是,它是一个内部svn存储库,可以通过
svn://
方案(而不是via1ѭ)访问。 我可以像
svn co svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version ./foobar
这样签出目录,然后用pip:ѭ3install安装它,但是我不能一口气完成它。 这是我尝试过的内容输出
pip install svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version
...
  File \".../virtualenv/lib/python2.5/site-packages/pip-0.7.2-py2.5.egg/pip/vcs/__init__.py\",line 110,in get_url_rev
    url = self.url.split(\'+\',1)[1]
IndexError: list index out of range
pip install svn+svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version
...
File \"...virtualenv/lib/python2.5/site-packages/distribute-0.6.10-py2.5.egg/pkg_resources.py\",line 2424,in scan_list
raise ValueError(\"Expected \"+item_name+\" in\",line,\"at\",line[p:])
ValueError: (\'Expected version spec in\',\'svn+svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version\',\'at\',\'+svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version\')
这两个问题都会在URL末尾出现或不出现“ 6”的情况下发生(带有相同的错误消息)。 并作为可编辑的URL:
pip install -e svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version#egg=package
Obtaining package from svn+svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version#egg=package
  Checking out svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version#egg=package to ../virtualenv/src/package
svn: URL \'svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version#egg=package\' is not properly URI-encoded
因此,SVN抱怨URL的末尾是否有一个“ 8”,如果我忽略它,则会出现此错误
pip install -e svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version
--editable=svn://172.31.1.3/Development/Common/ThirdParty/Python/package/our-version is not the right format; it must have #egg=Package
如何通过带有pip的SVN链接安装软件包?     

解决方法

现在是一个开放的错误。保罗·纳斯拉特(Paul Nasrat)正在研究它,并打开并发布。 遵循https://github.com/pypa/pip/issues/252