From 74450a93089ab3be6824c59e57b1c7838ae5a02b Mon Sep 17 00:00:00 2001 From: Marco Mariani <marco.mariani@nexedi.com> Date: Tue, 25 Sep 2012 16:26:33 +0200 Subject: [PATCH] include psycopg2 egg --- stack/lapp/buildout.cfg | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/stack/lapp/buildout.cfg b/stack/lapp/buildout.cfg index 5b9fcd3b3..33ac97b96 100644 --- a/stack/lapp/buildout.cfg +++ b/stack/lapp/buildout.cfg @@ -3,6 +3,7 @@ parts = apache-php-postgres eggs template + psycopg2 template-apache-php template-postgres @@ -32,6 +33,7 @@ eggs = ${lxml-python:egg} slapos.toolbox cns.recipe.symlink + collective.recipe.distutils @@ -67,3 +69,24 @@ location = location = +[psycopg2] +recipe = zc.recipe.egg:custom +egg = psycopg2 +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 + + +## this works as well as the above +#[psycopg2] +#recipe = collective.recipe.distutils +#url = http://www.psycopg.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz +#build_ext = +# --pg-config=${postgresql:location}/bin/pg_config +# --rpath=${postgresql:location}/lib + + -- 2.30.9