What is the point of Python egg files?

◇◆丶佛笑我妖孽 提交于 2020-01-03 08:21:26

问题


When I run python setup.py install django, it generates an egg file.

What is the usefulness of Python egg files?


回答1:


A small introduction to Python Eggs.




回答2:


The "egg" is Python's binary distribution format. It's basically a zipped file with some extra metadata that you can give another Python user. He can "install" and use them. For details on what they are, please refer to http://peak.telecommunity.com/DevCenter/PythonEggs. Since it's a "native" format, Python can employ custom importers and the like.

For details on how to use them, check this out.

I've been out of touch with the packaging world for a while now. There was some talk of discontinuing support for binary distribution formats. The relevant documents that I know of are at http://bitbucket.org/tarek/distutils2/src/tip/docs/design/wiki.rst




回答3:


the egg file is an archive which holds a module (django in your case) and gives you the ability to import something_from_egg. Read more here



来源:https://stackoverflow.com/questions/4384402/what-is-the-point-of-python-egg-files

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