这与我不久前问的这个问题有关。
最终的结果是我希望能够安装我的包“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 都会访问我根据此信息布置的主页
我的 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
显然我误解了“规范”。有人知道诀窍是什么吗?