首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >生成buildout下载包oauth2、python-openid和django-social-auth

生成buildout下载包oauth2、python-openid和django-social-auth
EN

Stack Overflow用户
提问于 2012-09-11 14:51:31
回答 1查看 319关注 0票数 0

我一直在与buildout脚本的问题作斗争,当所有其他包都正确下载时,不能下载某些包。

我的构建脚本如下:

代码语言:javascript
复制
[buildout]
parts = python
        django
        djangoprod
        fabric
        celery

download-cache = downloads
prefer-final = true
install-from-cache = true
#      PIL

# newest=false says "don't check every time to see if there's a newer
# version.  This makes running bin/buildout much faster.
#
# If you want to pull in the latest version of everything, run
# bin/buildout -n
newest=false

[python]
recipe = zc.recipe.egg
interpreter = python
eggs = django
       adodbapi
       ${django:eggs}
extra-paths =
       ${buildout:directory}

[django]
recipe = djangorecipe
version = 1.2.3
settings = development
eggs = south
       django-celery
       django-celery-email
       django-debug-toolbar
       simplejson
       sorl-thumbnail
       psycopg2
       oauth2
       python-openid
       django-social-auth
project = project

[djangoprod]
# We have 2 rules for django here because we want the WSGI script to use
# production settings and bin/django (commandline) to use development
# settings.
recipe = djangorecipe
version = ${django:version}
wsgi = true
wsgilog = /var/www/roonga/logs/wsgi.log
settings = production
eggs = ${django:eggs}
project = ${django:project}
extra-paths =
       ${django:extra-paths}

[south]
# http://south.aeracode.org/
recipe = zc.recipe.egg
version = newest

[fabric]
# http://docs.fabfile.org/0.9.2/
recipe = zc.recipe.egg
version = newest

[celery]
# http://celeryproject.org/
recipe = zc.recipe.egg

[celerymon]
# http://pypi.python.org/pypi/celerymon/0.2.0
recipe = zc.recipe.egg
version = newest

[django-celery]
# http://pypi.python.org/pypi/django-celery
recipe = zc.recipe.egg
version = newest

[django-celery-email]
# http://pypi.python.org/pypi/django-celery-email
recipe = zc.recipe.egg
version = newest

[django-debug-toolbar]
# http://github.com/robhudson/django-debug-toolbar
recipe = zc.recipe.egg
version = newest

[simplejson]
# http://pypi.python.org/pypi/simplejson/
recipe = zc.recipe.egg
version = newest

[sorl-thumbnail]
# http://thumbnail.sorl.net/docs/
recipe = zc.recipe.egg
version = newest

[psycopg2]
recipe = zc.recipe.egg
version = newest

[oauth2]
# http://pypi.python.org/pypi/oauth2/
recipe = zc.recipe.egg
version = newest

[python-openid]
# http://pypi.python.org/pypi/python-openid/
recipe = zc.recipe.egg
version = newest

[django-social-auth]
# http://pypi.python.org/pypi/django-social-auth/
recipe = zc.recipe.egg
version = newest

下载失败的包有oauth2、python-openid和django-social-auth。错误消息始终是:

代码语言:javascript
复制
Couldn't find index page for <package_name> (maybe misspelled?)
Getting distribution for <package_name>.
While:
  Installing django.
  Getting distribution for <package_name>.
Error: Couldn't find a distribution for <package_name>.

我分别尝试了每个包,但总是失败。我也尝试过直接将链接放入,并在部分中指定部分,但仍然没有得到任何结果。

提前感谢任何人能提供的任何帮助。

导航

EN

回答 1

Stack Overflow用户

发布于 2012-09-14 02:37:11

您必须:

代码语言:javascript
复制
install-from-cache = true

这意味着如果这些包不在您的缓存中,您的构建将失败。取消设置该选项,它应该会按预期工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12364223

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档