I'm trying to make buildout config that installs psycopg2 egg and postgres from source if needed:
parts =
...
postgre
psycopg2
...
[postgre]
recipe = hexagonit.recipe.cmmi
url = ftp://ftp3.ua.postgresql.org/pub/mirrors/postgresql/source/v9.0.0/postgresql-9.0.0.tar.gz
configure-options =
--without-readline
[psycopg2]
recipe = zc.recipe.egg:custom
egg = psycopg2
include-dirs =
${postgre:location}/include
library-dirs =
${postgre:location}/lib
rpath =
${postgre:location}/lib
The problem is that it always builds postgresql from source, even if the user already has postgresql installed.
How can I tell buildout to check if user already have all necessary to build psycopg2?