4

我正在尝试运行旧的 Plone 3.3 buildout.cfg。在 [versions] 中,我将 buildout 确定如下:

cat buildout.cfg|grep -i zc.buildout
zc.buildout = 1.4.3

然而,由于某种原因,bootstrap.py 生成的 bin/buildout 最终使用了最新的 2.0.0 版本:

cat bin/buildout|grep -i zc.buildout
  '/srv/plone/x/eggs/zc.buildout-2.0.0-py2.4.egg',

尝试运行 bin/buildout 时失败:

      An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/tmp/tmpjc_Zhu/zc.buildout-2.0.0-py2.4.egg/zc/buildout/buildout.py", line 1808, in main
  File "/tmp/tmpjc_Zhu/zc.buildout-2.0.0-py2.4.egg/zc/buildout/buildout.py", line 455, in install
  File "/tmp/tmpjc_Zhu/zc.buildout-2.0.0-py2.4.egg/zc/buildout/buildout.py", line 888, in _maybe_upgrade
  File "/tmp/tmpjc_Zhu/zc.buildout-2.0.0-py2.4.egg/zc/buildout/easy_install.py", line 759, in install
  File "/tmp/tmpjc_Zhu/zc.buildout-2.0.0-py2.4.egg/zc/buildout/easy_install.py", line 578, in install
TypeError: get_dist() takes exactly 4 arguments (3 given)
*********************************************
Overwriting versions.cfg

如何构建以将自身引导为 1.4.3(兼容版本)?

这仅涉及此 buildout.cfg 的新运行。在我使用 zc.buildout 1.4.3 的旧系统上,我已经无法重复这个问题了。

4

1 回答 1

6

看起来你需要使用这个bootstrap.py

  http://downloads.buildout.org/1/bootstrap.py

这个不好

  http://svn.zope.org/repos/main/zc.buildout/trunk/bootstrap/bootstrap.py

更多细节在这里:

https://github.com/miohtama/senorita.plonetool/commit/75f54c818801e9eeb10c38962e5ccc58f8b2f031

于 2013-02-11T17:17:02.840 回答