在 PyDev 中查看 Python Egg 文件中的代码
使用 PyDev 在 Eclipse 中工作的一个很好的功能是,单击 F3 您可以浏览几乎所有内容。但是,如果您使用的包包含在 Python Egg< /a>,这是行不通的。
有可能让它发挥作用吗?
如果没有,是否可以将鸡蛋的内容提取到站点包中并删除鸡蛋?一些元数据不会丢失吗?
One of the nice features of working in Eclipse with PyDev is that clicking F3 you can browse into almost anything. However, if the package you're using is contained in a Python egg, that doesn't work.
Is it possible to make it work?
If not, would it work to extract the egg's contents into site-packages
and delete the egg? Wouldn't some metadata be lost?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上,你所说的应该有效(即:对 zip 中的文件引用执行 F3 应该可以正确打开该文件)。
因此,在 PyDev 中处理 zip 文件时,这实际上是一个相当严重的错误(我刚刚修复了该错误,并且已经在当前的夜间构建中可用 - 它将针对 PyDev 2.2.3 发布)。
要获取夜间构建,请参阅以下网址的说明:http://pydev.org/download.html
Actually, what you're saying should work (i.e.: doing F3 on a reference to a file within a zip should open the file properly).
So, this was actually a rather critical bug when dealing with zip files in PyDev (which I've just fixed and is already available in the current nightly build -- it'll be released for PyDev 2.2.3).
For getting the nightly build see instructions at: http://pydev.org/download.html
您可以将egg的内容解压缩到
site-packages
中,它就会起作用。You can unzip the egg's contents into
site-packages
and it will work.