我对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(或最新版本)添加依赖项?
答案 0 :(得分:6)
将所需依赖项的名称添加到setup.py
的{{1}}数组:
install_requires