如何禁止 easy_install 压缩鸡蛋? [英] How do I forbid easy_install from zipping eggs?

查看:51
本文介绍了如何禁止 easy_install 压缩鸡蛋?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在 distutils.cfg 中放入什么来防止 easy_install 安装压缩蛋?压缩是一个不错的想法,但我喜欢能够通过 grep 调试该代码.

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.

我使用 python setup.py develop 引入了一些依赖项. 仔细观察发现它也接受 --always-unzip 标志.将其设置为默认值就好了.

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.

推荐答案

选项是 zip-ok,所以在你的 distutils.cfg 中输入以下内容:

the option is zip-ok, so put the following in your distutils.cfg:

[easy_install]

# i don't like having zipped files.
zip_ok = 0

这篇关于如何禁止 easy_install 压缩鸡蛋?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆