Python Packaging Documentation

末鹿安然 提交于 2019-12-07 08:05:42

问题


Where is the current reference for packaging python modules with Python 2.x?

  • http://guide.python-distribute.org/ The Hitchhiker’s Guide to Packaging (last update from july 2010)
  • http://docs.python.org/2.7/distutils/index.html distutils: Distributing Python Modules
  • https://python-packaging-user-guide.readthedocs.org/en/latest/ Python Packaging User Guide (fork of hitchhiker guide, alive)

I found the above versions. Which one should I follow?

My modules are simple. Some Python files, some Python scripts and some templates (django).


回答1:


The setuptools documentation is (probably) the reference you want.

The Hitchhiker’s Guide to Packaging and the Python Packaging User Guide are both community written guides to Python packaging, but may be helpful.

You may also find Differences between distribute, distutils, setuptools and distutils2? useful, as there are multiple packaging tools for Python (the short answer is that for Python 2, you should probably use setuptools).



来源:https://stackoverflow.com/questions/19116138/python-packaging-documentation

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