这与this问题有一定的关系。easy_install -f vs easy_install -i
最终的游戏是我想能够安装我的包“identity.model”和所有的依赖项。像这样......
$ easy_install -f http://eggs.sadphaeton.com identity.model
Searching for identity.model
Reading http://eggs.sadphaeton.com
Reading http://pypi.python.org/simple/identity.model/
Couldn't find index page for 'identity.model' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for identity.model
error: Could not find suitable distribution for Requirement.parse('identity.model')
运行该easy_install的不管是什么原因打根据this information
我的index.html
<html>
<head>
<title>SadPhaeton Egg Repository</title>
</head>
<body>
<a rel="homepage" href="AlchemyExtra">AlchemyExtra</a>
<a rel="homepage" href="identity.model">identity.model</a>
<a rel="homepage" href="repoze.what.plugins.config">repoze.what.plugins.config</a>
</body>
</html>
,如果我跑,我奠定了主页......
$ easy_install -i http://eggs.sadphaeton.com identity.model
它发现我的包,我把那里的repoze.what.plugins.config以及它是一个依赖项。然后当它去获取tw.forms(外部依赖托管在pypi上)它以失败结束,因为它只搜索http://eggs.sadphaeton.com
很明显,我误解了“规范”。任何人都有任何想法是什么技巧?
看起来像你引用的索引和我的索引之间的区别是那些都是源码分布,所以我不知道是否鸡蛋的分布会让这个更难。旁注:看起来像webfaction没有正确设置鸡蛋的MIME类型,我认为这也是使PIP失败。 – 2009-10-18 15:53:48
不,主要区别在于它在一页上列出了所有的分布,即所有可用的文件。你列出了软件包,而不是发行版。 identity.model,与identity.model-0.0dev-py2.6.egg。另外,你的文件有错误的内容类型,这可能也是不同的。 – 2009-10-18 17:40:51
换句话说,Plone列表只不过是一个目录列表,其中所有的文件名都链接到这些文件。我不知道rel =“download”是否相关,但是Plone列表没有它,PyPI索引也没有。 – 2009-10-18 17:43:25