本文介绍了zc.buildout 2.0.0版本最终以某种方式破坏了Plone的构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行旧的Plone 3.3 buildout.cfg.在[versions]中,我按如下方式固定扩展:

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的旧系统上,我无法重复该问题.

解决方案

看起来您需要使用此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/75f54c818801e9eeb10c38962e5ccc581 >

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.

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

这篇关于zc.buildout 2.0.0版本最终以某种方式破坏了Plone的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 11:17