0

有一种方法可以让 readthedocs.org 为在 google 应用程序引擎上运行的 Django 项目(托管在 git 上)构建基于 sphinx 的文档?

我继续收到此错误:

Sphinx Standard Error
The Google App Engine SDK could not be found!

我创建了以下需求文件:

django
ez_setup
google-appengine

但 ReadTheDocs 无法解压 google-appengine

Downloading/unpacking django (from -r docs/requirements.txt (line 1))
    Running setup.py egg_info for package django

Downloading/unpacking ez-setup (from -r docs/requirements.txt (line 2))
   Downloading ez_setup-0.9.tar.gz
   Running setup.py egg_info for package ez-setup

Downloading/unpacking google-appengine (from -r docs/requirements.txt (line 3))
   Running setup.py egg_info for package google-appengine
   Traceback (most recent call last):
       File "<string>", line 16, in <module>
       File  "/home/docs/checkouts/readthedocs.org/user_builds/****/envs/latest/build/google-appengine/setup.py", line 2, in <module>
       import ez_setup
   ImportError: No module named ez_setup
   Complete output from command python setup.py egg_info:
   Traceback (most recent call last):

File "<string>", line 16, in <module>

File "/home/docs/checkouts/readthedocs.org/user_builds/***/envs/latest/build/google-appengine/setup.py", line 2, in <module>

import ez_setup
ImportError: No module named ez_setup
4

1 回答 1

0

ez_setup不是你通常会依赖的东西。它是一个单独的ez_setup.py文件,过去捆绑在您旁边,setup.py以帮助没有setuptools(或distribute)安装的人。在您的 setup.py 中将类似于:

try:
    import setuptools
except Import Error:
    # run ez_setup

但是您正在使用 virtualenv,并且您现在几乎可以指望拥有 virtualenv/setuptools/distribute 的人。因此,您可以删除所有ez_setup引用,尤其是从您的requirements.txt.

我认为ez_setup您正在安装的模块干扰了应用引擎自己的setup.py.

于 2012-11-18T17:40:50.210 回答