creating a plone 3 site from buildout
by
Jörg Baach
—
last modified
Feb 02, 2010 02:29 PM
How do create a plone 3 site using buildout again? Using ubuntu 9.10 (karmic)?
update: just go to http://plone.org/documentation/manual/developer-manual/managing-projects-with-buildout
(mostly following http://www.stereoplex.com/2008/may/7/creating-a-python-2-4-plone-and-zope-development-e/ here)
Requirements
First of course, python2.4 and python2.4 dev needs to be installed.
Download http://peak.telecommunity.com/dist/ez_setup.py
wget http://peak.telecommunity.com/dist/ez_setup.py
As I only use easy_install for plone stuff, I do a system wide installation of it
sudo python2.4 ez_setup.py sudo easy_install virtualenv
Setting up the plone site
Virtual environment
Now I create a virtual environment directory for my plone 3 site
virtualenv --no-site-packages plone3 cd plone3 source bin/activate
Now, for the actual plonesite
easy_install ZopeSkel paster create -t plone3_buildout plonesite
Lets modify the configuration
cd plonesite vim buildout.cfg
Edit the file to contain the following:
[buildout] parts = PIL .... eggs = ... PIL [PIL] recipe = zc.recipe.egg egg = PIL==1.1.6 find-links = http://dist.repoze.org/
e.g. mine for 3.3.3 now looks like this
[buildout] parts = zope2 productdistros instance zopepy PIL # Change the number here to change the version of Plone being used extends = http://dist.plone.org/release/3.3.2/versions.cfg versions = versions # Add additional egg download sources here. dist.plone.org contains archives # of Plone packages. find-links = http://dist.plone.org/release/3.3.2 http://dist.plone.org/thirdparty # Add additional eggs here eggs = PIL # Reference any eggs you are developing here, one per line # e.g.: develop = src/my.package develop = [versions] # Version pins for new style products go here plone.recipe.zope2instance = 3.6 [zope2] # For more information on this step and configuration options see: # http://pypi.python.org/pypi/plone.recipe.zope2install recipe = plone.recipe.zope2install fake-zope-eggs = true url = ${versions:zope2-url} # Use this section to download additional old-style products. # List any number of URLs for product tarballs under URLs (separate # with whitespace, or break over several lines, with subsequent lines # indented). If any archives contain several products inside a top-level # directory, list the archive file name (i.e. the last part of the URL, # normally with a .tar.gz suffix or similar) under 'nested-packages'. # If any archives extract to a product directory with a version suffix, list # the archive name under 'version-suffix-packages'. [productdistros] # For more information on this step and configuration options see: # http://pypi.python.org/pypi/plone.recipe.distros recipe = plone.recipe.distros urls = nested-packages = version-suffix-packages = [instance] # For more information on this step and configuration options see: # http://pypi.python.org/pypi/plone.recipe.zope2instance recipe = plone.recipe.zope2instance zope2-location = ${zope2:location} user = admin:admin http-address = 8080 #debug-mode = on #verbose-security = on # If you want Zope to know about any additional eggs, list them here. # This should include any development eggs you listed in develop-eggs above, # e.g. eggs = Plone my.package eggs = Plone ${buildout:eggs} # If you want to register ZCML slugs for any packages, list them here. # e.g. zcml = my.package my.other.package zcml = products = ${buildout:directory}/products ${productdistros:location} [zopepy] # For more information on this step and configuration options see: # http://pypi.python.org/pypi/zc.recipe.egg recipe = zc.recipe.egg eggs = ${instance:eggs} interpreter = zopepy extra-paths = ${zope2:location}/lib/python scripts = zopepy [PIL] recipe = zc.recipe.egg egg = PIL==1.1.6 find-links = http://dist.repoze.org/
Installing the site
easy_install -U setuptools python bootstrap.py ./bin/buildout
Running the site
bin/instance fg