On Github 1stvamp / pycon-2012-lightning-talk
Wes Mason
[buildout] develop = . parts = python test eggs = coverage Django [versions] Django = 1.2 coverage = 3.5.2 [python] ... [test] ...
buildout can be bootstrapped itself and sandboxed
$ python boostrap.py $ bin/buildout
[buildout] parts = var-dir var-directory = ${buildout:directory}/var [var-dir] recipe = z3c.recipe.mkdir paths = ${buildout:var-directory}/celery
[python] recipe = z3c.recipe.scripts:interpreter eggs = ${buildout:eggs} extra-paths = ${buildout:directory}/src/myapp/somemodule script-initialization = os.environ['PROJ_ENV'] = "${config:environment}"
[buildout] find-links = http://my-private-pypi.somecompany.com/ extends = buildout.cfg [config] environment = production
$ bin/buildout -c production.cfg ... $ bin/python Python 2.7.1 >>> import os >>> os.environ['PROJ_ENV'] 'production'