There are two basic formats currently implemented for Python eggs:
.egg format: a directory or zipfile containing the project's code and resources, along with an EGG-INFO subdirectory that
contains the project's metadata
.egg-info format: a file or directory placed adjacent to the project's code and resources, that directly contains the project's
metadata.
您需要将
fbconsole
模块放入GAE项目中才能使其正常工作。通过
pip
或easy install
安装它确实可以用于您的本地python,但不能用于GAE项目。在当我
pip install fbconsole
时,我得到的不是.egg
文件,而是.egg-info
文件,它只是元数据,还有项目文件fbconsole.py
和fbconsole.pyc
。源包似乎是PyPI上唯一上载的格式,因此您的问题是,如果您使用我的path_fixer.py
脚本,则需要将fbconsole.py
文件复制到您的packages目录中(尽管它将在第一次访问时重新生成该文件),或者如果不复制,则复制到项目的根目录。在下面是关于
.egg
和.egg-info
文件之间区别的更多信息。在http://svn.python.org/projects/sandbox/trunk/setuptools/doc/formats.txt
相关问题 更多 >
编程相关推荐