我正在尝试做构建配置,如果需要的话,可以从源psycopg2 安装蛋和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的所有必要条件?
发布于 2010-10-26 18:03:52
你可以做到的,但你必须自己做食谱才能做到这一点。没有现成的食谱能做你想做的事。
另一种选择是有两个建立起来的信任。主buildout.cfg假定postgresql是可用的,不试图构建它。
第二个withpostgres.cfg可能如下所示:
[buildout]
parts +=
postgre
psycopg2
[postgres]
... your existing one ...
[psycopg2]
... your existing one ...需要从源构建它的用户可以通过调用bin/buildout -c withpostres.cfg来使用第二种配置。
这能解决你的问题吗?
https://stackoverflow.com/questions/3999081
复制相似问题