Personal tools
You are here: Home Documentation Tutorials Managing projects with zc.buildout Creating a buildout defaults file
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Creating a buildout defaults file

This makes it possible to share configuration across multiple buildouts, and save some time and disk space.

Martin Aspeli

Learn about eggs, setuptools and dependency management, and how to use zc.buildout to set up a development environment.
Page 6 of 9.

To set "global" options affecting all buildouts, create a directory .buildout (note leading dot) in your home directory, and add a file there called default.cfg. Any option set here will be applied to the corresponding section in any buildout.cfg that you run, unless it is overridden by a more specific option in the buildout.cfg file itself.

The most common options are:

executable
Specify a python interpreter other than the system default. This is useful if you have Python 2.5 installed, say, but you want your buildouts to use another installation of Python 2.4.
eggs-directory
Specify a directory where eggs will be downloaded. This allows multiple buildouts to share the same eggs, saving disk space and download time. Note that only those eggs explicitly required by a particular buildout will be activated. The eggs directory may contain many more eggs (or many different versions of the same package) than what is used at any one time.
download-directory
Specify a shared directory for downloaded archives. Again, this can save disk space and download time.

Here is an example ~/.buildout/default.cfg setting all three:

[buildout]
executable = /opt/python24/bin/python
eggs-directory = /home/username/.buildout/eggs
download-cache = /home/username/.buildout/downloads

This assumes Python 2.4 is installed in /opt/python2.4. For the last two options to work, you would need to create the directories eggs and downloads inside the ~/.buildout directory.

 
by Martin Aspeli last modified March 5, 2008 - 21:08 All content is copyright Plone Foundation and the individual contributors.

download-directory

Posted by Sylvain Viollon at April 2, 2008 - 08:51
Have to be replaced in the listing by download-cache, like in the sample. Download-cache work, not download-directory (at least with zc.buildout 1.0.0).

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by