安装Zope 2最简单的buildout.cfg是什么?

时间:2023-02-09 19:37:28

I know that the reccomended way to install Zope is with Buildout, but I can't seem to find a simple buildout.cfg to install a minimal Zope 2 environment. There are lots to install Plone and other things.

我知道安装Zope的推荐方法是使用Buildout,但我似乎无法找到一个简单的buildout.cfg来安装最小的Zope 2环境。有许多安装Plone和其他东西。

I've tried:

[buildout]
parts = zope

[zope]
recipe = plone.recipe.zope2install
eggs = 

But I get:

但我得到:

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/tmp2wqykW/zc.buildout-1.3.0-py2.4.egg/zc/buildout/buildout.py", line 1519, in main
  File "/tmp/tmp2wqykW/zc.buildout-1.3.0-py2.4.egg/zc/buildout/buildout.py", line 357, in install
  File "/tmp/tmp2wqykW/zc.buildout-1.3.0-py2.4.egg/zc/buildout/buildout.py", line 898, in __getitem__
  File "/tmp/tmp2wqykW/zc.buildout-1.3.0-py2.4.egg/zc/buildout/buildout.py", line 982, in _initialize
  File "/home/analyser/site/eggs/plone.recipe.zope2install-3.1-py2.4.egg/plone/recipe/zope2install/__init__.py", line 73, in __init__
    assert self.location or self.svn or self.url
AssertionError

1 个解决方案

#1


You need to tell plone.recipe.zope2install where to download Zope. Also, you'll need a zope2instance section, to create a Zope instance for you. These recipes are only needed for Zope up to version 2.11, as of 2.12 Zope has been fully eggified.

你需要告诉plone.recipe.zope2install在哪里下载Zope。此外,您还需要一个zope2instance部分,为您创建一个Zope实例。这些食谱仅​​适用于Zope至2.11版本,截至2.12 Zope已经完全打蛋。

Here is a minimal Zope 2.11 buildout.cfg:

这是一个最小的Zope 2.11 buildout.cfg:

[buildout]
parts = instance

[zope2]
recipe = plone.recipe.zope2install
url = http://www.zope.org/Products/Zope/2.11.3/Zope-2.11.3-final.tgz

[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:admin
http-address = 127.0.0.1:8080

Note that the instance part pulls in the zope2 part automatically as it depends on information provided by that part.

请注意,实例部分会自动拉入zope2部分,因为它取决于该部分提供的信息。

As of Zope 2.12 installation is fully egg based. The following sample buildout.cfg is all you need to install the latest beta:

截至Zope 2.12安装完全基于鸡蛋。以下示例buildout.cfg是您安装最新测试版所需的全部内容:

[buildout]
parts = scripts
extends = http://svn.zope.org/*checkout*/Zope/tags/2.12.0b3/versions.cfg

[versions]
Zope2 = 2.12.0b3

[scripts]
recipe = zc.recipe.egg:scripts
eggs = Zope2

Note the extends; it pulls in a list of versions for all Zope2 egg dependencies from the Zope subversion tag for 2.12.0b3, to make sure you get a stable combination of eggs. Without it you may end up with newer egg versions that have introduced incompatibilities.

注意延伸;它从Zope subversion标签2.12.0b3中提取所有Zope2蛋依赖性的版本列表,以确保获得稳定的蛋组合。如果没有它,你可能会得到引入不兼容性的新蛋版本。

#1


You need to tell plone.recipe.zope2install where to download Zope. Also, you'll need a zope2instance section, to create a Zope instance for you. These recipes are only needed for Zope up to version 2.11, as of 2.12 Zope has been fully eggified.

你需要告诉plone.recipe.zope2install在哪里下载Zope。此外,您还需要一个zope2instance部分,为您创建一个Zope实例。这些食谱仅​​适用于Zope至2.11版本,截至2.12 Zope已经完全打蛋。

Here is a minimal Zope 2.11 buildout.cfg:

这是一个最小的Zope 2.11 buildout.cfg:

[buildout]
parts = instance

[zope2]
recipe = plone.recipe.zope2install
url = http://www.zope.org/Products/Zope/2.11.3/Zope-2.11.3-final.tgz

[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:admin
http-address = 127.0.0.1:8080

Note that the instance part pulls in the zope2 part automatically as it depends on information provided by that part.

请注意,实例部分会自动拉入zope2部分,因为它取决于该部分提供的信息。

As of Zope 2.12 installation is fully egg based. The following sample buildout.cfg is all you need to install the latest beta:

截至Zope 2.12安装完全基于鸡蛋。以下示例buildout.cfg是您安装最新测试版所需的全部内容:

[buildout]
parts = scripts
extends = http://svn.zope.org/*checkout*/Zope/tags/2.12.0b3/versions.cfg

[versions]
Zope2 = 2.12.0b3

[scripts]
recipe = zc.recipe.egg:scripts
eggs = Zope2

Note the extends; it pulls in a list of versions for all Zope2 egg dependencies from the Zope subversion tag for 2.12.0b3, to make sure you get a stable combination of eggs. Without it you may end up with newer egg versions that have introduced incompatibilities.

注意延伸;它从Zope subversion标签2.12.0b3中提取所有Zope2蛋依赖性的版本列表,以确保获得稳定的蛋组合。如果没有它,你可能会得到引入不兼容性的新蛋版本。