<p>我将在2014年4月写这篇文章。注意任何关于Python打包、分发或安装的文章的日期。在过去的三年里,比如说,似乎已经减少了一些争论,改进了实现,PEP标准化,统一了战线。</p>
<p>例如,<a href="http://packaging.python.org/en/latest/glossary.html#term-python-packaging-authority-pypa" rel="nofollow">Python Packaging Authority</a>是“一个以Python打包方式维护许多相关项目的工作组”</p>
<p><code>python.org</code><a href="http://packaging.python.org/en/latest/" rel="nofollow">Python Packaging User Guide</a>有<a href="http://packaging.python.org/en/latest/current.html" rel="nofollow">Tool Recommendations</a>和<a href="http://packaging.python.org/en/latest/future.html" rel="nofollow">The Future of Python Packaging</a>部分。</p>
<p><code>distribute</code>是2013年6月重新合并的<code>setuptools</code>分支。指南说,“使用<code>setuptools</code>来定义项目和创建源代码发行版。”</p>
<p>从PEP 453和Python 3.4开始,《指南》建议“使用<code>pip</code>从PyPI安装Python包”,并且<code>pip</code>包含在python3.4中,并由<code>pyvenv</code>安装在virtualenvs中,后者也包含在其中。你可能会发现<a href="http://legacy.python.org/dev/peps/pep-0453/#rationale" rel="nofollow">PEP 453 "rationale" section</a>很有趣。</p>
<p>指南中还提到了一些新的工具,包括<a href="http://packaging.python.org/en/latest/glossary.html#term-wheel" rel="nofollow">^{<cd8>}</a>和<a href="http://packaging.python.org/en/latest/projects.html#buildout" rel="nofollow">^{<cd9>}</a>。</p>
<p>我很高兴我读了以下两本技术/半政治史。</p>
<p>马蒂金·法森,2009年:<a href="http://blog.startifact.com/posts/older/a-history-of-python-packaging.html" rel="nofollow">A History of Python Packaging</a>。</p>
<p>由Armin Ronacher于2013年6月撰写(标题并不严肃):<a href="https://lucumr.pocoo.org/2012/6/22/hate-hate-hate-everywhere/" rel="nofollow">Python Packaging: Hate, hate, hate everywhere</a>。</p>