# Buildout configuration for tg2 who plugins project. [buildout] parts = postgresql psycopg2 supervisor tg2 sqlinit binfiles develop = src/TurboGears src/tgMochiKit src/TurboJson src/tg2whoplugins eggs = psycopg2==2.0.6 [postgresql] recipe = zc.recipe.cmmi url = http://ftp7.us.postgresql.org/pub/postgresql/source/v8.2.6/postgresql-8.2.6.tar.gz [psycopg2] recipe = zc.recipe.egg:custom egg = psycopg2 index = http://dist.repoze.org/simple define = PSYCOPG_EXTENSIONS,PSYCOPG_DISPLAY_SIZE,PSYCOPG_NEW_BOOLEAN,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3 include-dirs = ${postgresql:location}/include library-dirs = ${postgresql:location}/lib rpath = ${postgresql:location}/lib [supervisor] recipe = repoze.recipe.egg index = http://dist.repoze.org/simple/ eggs = supervisor interpreter = python-supervisor [tg2] recipe = repoze.recipe.egg find-links = http://files.turbogears.org/eggs http://svn.turbogears.org/projects eggs = TurboGears tgMochiKit TurboJson tg2whoplugins ${buildout:eggs} interpreter = python [sqlinit] recipe = iw.recipe.cmd on_install = true cmds = parts/postgresql/bin/initdb -D var/postgres [binfiles] recipe = iw.recipe.cmd on_install = true cmds = echo "${buildout:directory}/parts/postgresql/bin/psql -p5556 template1 < ${buildout:directory}/etc/createdb.sql" > bin/createdb chmod 755 bin/createdb