如何向Buildout添加依赖项?

时间:2011-08-01 02:33:16

标签: python buildout

我对Buildout很陌生,但是由于有很好的教程here,我刚刚在其中构建了我的第一个Django应用程序。我习惯使用Maven,那么如何“添加依赖”,以便Buildout将其下载并将其包含在构建中?这是我的buildout.cfg文件:

[buildout]
parts = python django
develop = .
eggs = my-project
versions = versions

[versions]
django = 1.3

[python]
recipe = zc.recipe.egg
interpreter = python
eggs = ${buildout:eggs}

[django]
recipe = djangorecipe
project = my-project
projectegg = my-project
settings = settings
test = my-project
eggs = ${buildout:eggs} 

我需要在此处更改为south版本0.7.3(或最新版本)添加依赖项?

1 个答案:

答案 0 :(得分:6)

将所需依赖项的名称添加到setup.py的{​​{1}}数组:

install_requires