setuptools 0.7中项目名称中的连字符?

时间:2013-07-15 16:52:42

标签: python setuptools buildout

我有一个很好的小脚本库叫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。我怎样才能做到这一点?

0 个答案:

没有答案