如何禁止 easy_install 压缩 Egg?
我必须在 distutils.cfg
中添加什么内容才能防止 easy_install 安装压缩的 Egg? 压缩是一个很好的想法,但我喜欢能够 grep 并调试该代码。
我使用 python setup.pydevelop 引入了一些依赖项。仔细观察发现,它也接受 --always-unzip 标志。 如果将其设置为默认值就好了。
What must I put into distutils.cfg
to prevent easy_install from ever installing a zipped egg? The compression is a nice thought, but I like to be able to grep through and debug that code.
I pulled in some dependencies with python setup.py develop .
A closer look reveals that also accepts the --always-unzip flag. It would just be nice to set that as default.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
一种解决方案?
One solution?
我在使用 buildout 时遇到了问题,并通过
在
buildout.cfg
文件中添加以下内容解决了该问题:I had the issue using buildout, and the solved it by adding:
in the
buildout.cfg
file该选项是 zip-ok,因此请将以下内容放入您的 distutils.cfg 中:
the option is zip-ok, so put the following in your distutils.cfg:
我怀疑 distutils.cfg 中是否有为此设置,因为 easy_install 不是 distutils 的一部分。 但是像这样运行 easy_install :
它应该可以解决问题。
I doubt there is a setting in distutils.cfg for this, as easy_install is not a part of distutils. But run easy_install like this:
and it should solve the problem.