构建和主机超时:配置更短的超时和已知良好的主机集

时间:2012-01-25 16:08:47

标签: plone buildout

如果我理解正确buildout内部使用setuptools和setuptools ramdomly刮擦HTML页面希望找到鸡蛋。如果任何关键主机关闭并且从PyPi README等引用它,则会导致以下问题:

Download error on http://svn.plone.org/svn/collective/ZopeSkel/trunk: timed out -- Some packages may not be found!
Download error on http://svn.plone.org/svn/collective/ZopeSkel/trunk: timed out -- Some packages may not be found!
Download error on http://svn.plone.org/svn/collective/ZopeSkel/trunk: timed out -- Some packages may not be found!
Download error on http://svn.plone.org/svn/collective/ZopeSkel/trunk: timed out -- Some packages may not be found!
Download error on http://svn.plone.org/svn/collective/ZopeSkel/trunk: timed out -- Some packages may not be found!

因为每个URL提取都会1)阻止扩建进度2)长时间运行buildout的超时会变得很痛苦(需要几个小时)

如何配置buildout

  • 超时快速

  • 不要抓取任意网址以及为Plone和常见附加组件设置的知名网址

2 个答案:

答案 0 :(得分:6)

要设置超时五秒,请使用bin/buildout -t 5

答案 1 :(得分:2)

allow-hosts部分设置buildout参数,例如:

[buildout]
allow-hosts =
  *.python.org

这会强制buildout只能在PyPI上查找下载。