使用 zc.buildout,如何从网站安装 tarball?
我正在尝试让 zc.buildout 从源代码安装 Gunicorn。使用以下配置:
[gunicorn]
recipe = collective.recipe.distutils
url = http://github.com/benoitc/gunicorn/tarball/master
会导致以下错误:
SystemError: ('Failed', '"/usr/bin/python" setup.py -q install --install- purelib="/mnt/hgfs/Projects/intranation/parts/site-packages" --install-platlib="/mnt/hgfs/Projects/intranation/parts/site-packages"')
提供 --install-dir
或 --prefix
没有帮助。
zc.buildout 是否有一个方法可以下载 tarball 并通过 easy_install 或类似方式安装它?
I'm trying to get zc.buildout to install Gunicorn from source. Using the following configuration:
[gunicorn]
recipe = collective.recipe.distutils
url = http://github.com/benoitc/gunicorn/tarball/master
results in the following error:
SystemError: ('Failed', '"/usr/bin/python" setup.py -q install --install- purelib="/mnt/hgfs/Projects/intranation/parts/site-packages" --install-platlib="/mnt/hgfs/Projects/intranation/parts/site-packages"')
Providing a --install-dir
or --prefix
doesn't help.
Is there a recipe for zc.buildout that downloads a tarball and installs it via easy_install or similar?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以“直接”安装它。在命令行上,“easy_install http://github.com/benoitc/gunicorn/tarball/master ”工作正常。
相当于 buildout 的是对“gunicorn”的依赖(以便 buildout 尝试安装它)并告诉 buildout 您的 github 链接实际上是 Gunicorn。您可以使用 find-links 来做到这一点:
You can "just" install it. On the command line, "easy_install http://github.com/benoitc/gunicorn/tarball/master" works fine.
The buildout equivalent would be to have a dependency on "gunicorn" (so that buildout attempts installing it) and to tell buildout that your github link is actually gunicorn. You do that with find-links: