我是Buildout的新手,但是我刚刚获得了我的第一个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}
Run Code Online (Sandbox Code Playgroud)
我需要在这里更改为south0.7.3版本(或最新版本)添加依赖项?
添加名称所需的依赖到setup.py的install_requires数组:
setup(
...
install_requires = ['setuptools', 'south'],
...
)
Run Code Online (Sandbox Code Playgroud)