当前使用 Python 2.x 打包 python 模块的引用资料在哪里?
- http://guide.python-distribute.org/包装漫游指南(最后更新于 2010 年 7 月)
- http://docs.python.org/2.7/distutils/index.html distutils:分发 Python 模块
- https://python-packaging-user-guide.readthedocs.org/en/latest/ Python 打包用户指南(hitchhiker guide 的分支,alive)
我找到了以上版本。我应该遵循哪一个?
我的模块很简单。一些 Python 文件、一些 Python 脚本和一些模板 (django)。
2021 年更新
我很高兴。今天很清楚找到维护的教程:
最佳答案
setuptools文档(可能)是您想要的引用。
The Hitchhiker’s Guide to Packaging和 the Python Packaging User Guide都是 Python 打包的社区书面指南,但可能会有帮助。
您还可以找到 Differences between distribute, distutils, setuptools and distutils2?很有用,因为有多种 Python 打包工具(简短的回答是,对于 Python 2,您可能应该使用 setuptools)。
关于Python 打包文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19116138/