zc.buildout 2.0.0 release somehow ends up breaking Plone buildouts

房东的猫 提交于 2019-12-23 12:01:32

问题


I am trying to run old Plone 3.3 buildout.cfg. In [versions] I pin down buildout as the following:

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

However, for some reason bootstrap.py generated bin/buildout ends up using the latest 2.0.0 release:

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

Which fails when trying to run 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

How to make buildout to bootstrap itself as 1.4.3 (compatible version)?

This concerns only fresh runs of this buildout.cfg. On my old system which uses zc.buildout 1.4.3 already I cannot repeat the problem.


回答1:


Looks like you need to use this bootstrap.py:

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

This one is not good:

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

More details here:

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



来源:https://stackoverflow.com/questions/14817138/zc-buildout-2-0-0-release-somehow-ends-up-breaking-plone-buildouts

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!