如果需要,我正在尝试制作从源代码安装 psycopg2 egg 和 postgres 的构建配置:
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
问题是它总是从源代码构建 postgresql,即使用户已经安装了 postgresql。
我如何告诉 buildout 检查用户是否已经拥有构建 psycopg2 所需的一切?