我跑了
bin/paster create -t dexterity my.example
运行后,我有以下内容:
bootstrap.py
docs
my.example.egg-info
PasteDeploy-1.5.0-py2.6.egg
plone.cfg
setup.cfg
buildout.cfg
my
Paste-1.7.5.1-py2.6.egg
PasteScript-1.7.5-py2.6.egg
README.txt
setup.py
为什么我还有3个鸡蛋?我的buildout配置错了吗?
我刚刚使用统一安装程序安装了Plone4,当我尝试运行pater命令时出现此错误:
AttributeError: 'module' object has no attribute 'NoDefault'
当我将[paster]
部分附加到我的buildout时,显示为here。最初,我的buildout只有[zopskel]
部分没有[paster]
部分。
答案 0 :(得分:5)
如果有点恼火,这是完全正常的。您的setup.py文件会使用setup_requires
和paster_plugins
部分提取这些内容:
setup(...
setup_requires=["PasteScript"],
paster_plugins=["ZopeSkel"],
...
)
ZopeSkel贴纸食谱使用这些鸡蛋让您在以后添加片段到生成的蛋中。如果您不需要此功能,请删除上述两个条目和鸡蛋。