额外路径未使用 zc.recipe.testrunner 添加到 python 路径
我试图通过在 sys.path 中添加从 github.com 下载的tornado 版本来运行测试。
[tests]
recipe = zc.recipe.testrunner
extra-paths = ${buildout:directory}/parts/tornado/
defaults = ['--auto-color', '--auto-progress', '-v']
但是当我运行 bin/tests 时,出现以下错误:
ImportError: No module named tornado
我不明白如何使用额外路径吗?
马丁
I am trying to run tests by adding a version of tornado downloaded from github.com in the sys.path.
[tests]
recipe = zc.recipe.testrunner
extra-paths = ${buildout:directory}/parts/tornado/
defaults = ['--auto-color', '--auto-progress', '-v']
But when I run bin/tests I get the following error :
ImportError: No module named tornado
Am I not understanding how to use extra-paths ?
Martin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过查看生成的
bin/tests
脚本是否包含您的路径?它会明确告诉您的 buildout.cfg 是否正确。也许问题出在其他地方。因为看起来你的代码没问题。如果您碰巧定期包含 git/mercurial 或其他地方的各种分支来进行构建,您可能会对 mr 感兴趣.开发人员。
mr.developer
可以下载包并将其添加到develop =
。您不需要在每个部分中设置extra-path
。Have you tried looking into generated
bin/tests
script if it contains your path? It will tell definitely if your buildout.cfg is correct or not. Maybe problem is elsewhere. Because it seem that your code is ok.If you happen to regularly include various branches from git/mercurial or elsewhere to buildout, you might be interested in mr.developer.
mr.developer
can download and add package todevelop =
. You wont need to setextra-path
in every section.