2012-01-14 7 views
0

インストールプロセスで自動的にpostgresqlをビルドするように私のpythonプロジェクトを設定したいと思います。 あなたがここに記載されているものと同様にそれを行うことができます。buildout経由でreadlineをインストールするには

Buildout, psycopg2, postgresql

を問題は、私は、私はreadlineのライブラリをインストールしなければならないことを意味

configure-options = 
--without-readline 

オプション

を使用して好きではないです。私はいくつかのヒントを見つけたので、私は私のbuildout.cfgにこれらの部品を追加しましたIにPloneの設定ファイルを見て:

[readline-patch] 
recipe = z3c.recipe.runscript 
url = http://ftp.gnu.org/gnu/readline/readline-5.2-patches 
install-script = ${buildout:directory}/bin/fetch-readline-patches.py:fetch 
update-script = ${readline-patch:install-script} 

[readline] 
recipe = zc.recipe.cmmi 
url = http://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz 
patch = ${readline-patch:prefix}/readline.patch 
extra_options = 
    --prefix = ${buildout:parts-directory}/opt 

しかし、今、私はこのエラーを取得しています:

Installing readline-patch. 
While: 
    Installing readline-patch. 

An internal error occurred due to a bug in either zc.buildout or in a 
recipe being used: 
Traceback (most recent call last): 
    File "/home/mnowotka/Dokumenty/MgrFuncAdnot/app/django-gui/eggs/zc.buildout-1.5.2- py2.7.egg/zc/buildout/buildout.py", line 1805, in main 
getattr(buildout, command)(args) 
    File "/home/mnowotka/Dokumenty/MgrFuncAdnot/app/django-gui/eggs/zc.buildout-1.5.2-py2.7.egg/zc/buildout/buildout.py", line 584, in install 
    installed_files = self[part]._call(recipe.install) 
    File "/home/mnowotka/Dokumenty/MgrFuncAdnot/app/django-gui/eggs/zc.buildout-1.5.2-py2.7.egg/zc/buildout/buildout.py", line 1297, in _call 
    return f() 
    File "/home/mnowotka/Dokumenty/MgrFuncAdnot/app/django-gui/eggs/z3c.recipe.runscript-0.1.3-py2.7.egg/z3c/recipe/runscript/__init__.py", line 39, in install 
    self.callScript(script) 
    File "/home/mnowotka/Dokumenty/MgrFuncAdnot/app/django-gui/eggs/z3c.recipe.runscript-0.1.3-py2.7.egg/z3c/recipe/runscript/__init__.py", line 28, in callScript 
    module = imp.load_source('script', filename) 
IOError: [Errno 2] No such file or directory 

とすべてのヘルプそれを働かせていただければ幸いです。

答えて

0

z3c.recipe.runscriptにはurlオプションがありません。そのため、スクリプトはダウンロードされません。ローカルスクリプトを使用すると、ファイルをダウンロードして実行することができます。またはhttp://pypi.python.org/pypi/collective.recipe.scriptgenを使用してbuildoutによるスクリプトを作成します。これは、カールを介してファイルをダウンロードします。

関連する問題