What are the advantages of packaging your python library/application as an .egg file?

前端 未结 6 725
长发绾君心
长发绾君心 2021-01-07 17:29

I\'ve read some about .egg files and I\'ve noticed them in my lib directory but what are the advantages/disadvantages of using then as a developer?

6条回答
  •  生来不讨喜
    2021-01-07 17:44

    For simple Python programs, you probably don't need to use eggs. Distributing the raw .py files should suffice; it's like distributing source files for GNU/Linux. You can also use the various OS "packagers" (like py2exe or py2app) to create .exe, .dmg, or other files for different operating systems.

    More complex programs, e.g. Django, pretty much require eggs due to the various modules and dependencies required.

提交回复
热议问题