What is the simplest version of buildout.cfg to install Zope 2?

I know that the recommended way to install Zope is with Buildout, but I cannot find a simple buildout.cfg to install a minimal Zope 2 environment. There are many possibilities to install Plone and other things.

I 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
+5
source share
1 answer

You need to tell plone.recipe.zope2install where to download Zope. In addition, you will need the zope2instance section to create an instance of Zope for you. These recipes are only necessary for Zope prior to version 2.11, starting from 2.12 Zope is completely ironed out.

Here is the minimal 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

, instance zope2, , .

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

extends; Zope2 subversion Zope 2.12.0b3, , . , .

+5

All Articles