How do I forbid easy_install from zipping eggs?

♀尐吖头ヾ 提交于 2019-12-09 15:30:34

问题


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.


回答1:


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



回答2:


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:

easy_install --always-unzip

and it should solve the problem.




回答3:


One solution?

easy_install pip
rm easy_install
ln -s easy_install pip



回答4:


I had the issue using buildout, and the solved it by adding:

[buildout]
unzip = true

in the buildout.cfg file



来源:https://stackoverflow.com/questions/1218058/how-do-i-forbid-easy-install-from-zipping-eggs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!