【问题标题】:Buildout and hosts timing out: configuring shorter timeout and known-good host set扩建和主机超时:配置更短的超时和已知良好的主机集
【发布时间】:2012-01-26 12:09:08
【问题描述】:

如果我正确理解 buildout 内部使用 setuptools 和 setuptools 随机抓取 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) 长时间运行构建超时会变得很痛苦(需要几个小时)

如何配置构建

  • 超时更快

  • 不要抓取任意 URL 以及为 Plone 和常见插件设置的众所周知的 URL

【问题讨论】:

    标签: plone buildout


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

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

      这会强制构建只在 PyPI 上查找下载。

      【讨论】:

      • 不确定这是个好主意。我试过了,很多使用 setup 安装的第三方下载(应用程序)都被这种方式阻止了(参考 github 等第三方存储库)
      猜你喜欢
      • 2020-11-03
      • 2018-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-31
      • 2017-06-22
      • 1970-01-01
      相关资源
      最近更新 更多