Python打包文档 [英] Python Packaging Documentation

查看:77
本文介绍了Python打包文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与Python 2.x打包python模块的当前参考在哪里?

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?

我的模块很简单.一些Python文件,一些Python脚本和一些模板(django).

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

推荐答案

setuptools 文档(可能)是您想要的参考.

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

《旅行者指南》包装指南 Python打包用户指南都是社区编写的Python打包指南,但可能会有帮助.

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

您可能还会发现 distribu,distutils,setuptools和distutils2之间的区别?很有用,因为有多个针对Python的打包工具(简而言之,对于Python 2,您可能应该使用setuptools).

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).

这篇关于Python打包文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆