我有一个很好的小脚本库叫buildout-starter,这使得创建Buildout项目非常容易。
然后,最新的Buildout声明了对setuptools>=0.7
的依赖,因此我必须在此处升级setuptools
以符合要求。
升级后,setuptools
现在与我的Buildout一起失败。虽然以下在0.7之前有效,但它现在失败了:
from setuptools import setup, find_packages
setup(
name = "tornado-chat-example",
version = "0.0.1-SNAPSHOT",
packages = find_packages('src'),
package_dir = { '': 'src'},
install_requires = [ 'setuptools', ],
)
我的src
目录如下所示:
src
├── tornadochatexample
└── tornado_chat_example.egg-info
这是我得到的错误:
Develop: '/home/naftuli/tornado-chat-example/.'
Installing python_section.
Couldn't find index page for 'tornadochatexample' (maybe misspelled?)
Getting distribution for 'tornadochatexample'.
Couldn't find index page for 'tornadochatexample' (maybe misspelled?)
While:
Installing python_section.
Getting distribution for 'tornadochatexample'.
Error: Couldn't find a distribution for 'tornadochatexample'.
就像我之前提到的,这个例子似乎在setuptools
0.6上运行,但现在在最新的setuptools
0.7中失败了。我怎样才能让它发挥作用?我希望我的项目名为tornado-chat-example
但是包含tornadochatexample
。我怎样才能做到这一点?