开发者

Using zc.buildout, how do I install a tarball from a website?

开发者 https://www.devze.com 2022-12-25 19:21 出处:网络
I\'m trying to get zc.buildout to install Gunicorn from source. Using the following configuration: [gunicorn]

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?


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:

[buildout]
  find-links =
      http://github.com/benoitc/gunicorn/tarball/master#egg=gunicorn
  parts = console_scripts


  [console_scripts]
  recipe = zc.recipe.egg
  eggs = gunicorn
0

精彩评论

暂无评论...
验证码 换一张
取 消