提供用户分散的命令
xdistutils的Python项目详细描述
Authors: | Ralf Schmitt <ralf@systemexit.de> |
---|---|
Version: | 0.2.0 |
Date: | 2012-02-08 |
Download: | http://pypi.python.org/pypi/xdistutils |
Code: | https://github.com/schmir/xdistutils |
xdistutils当前为python的 setup.py脚本。它使用advancecomp包来实现 更好地压缩.zip、.egg和.tar.gz文件。其他扩展 for distutils可能包含在将来的xdistutils版本中。
Installation
xdistutils可以与pip或easy_一起安装。为了 启用recompress命令,您必须注册包 带着鼻子。可以通过将以下内容添加到 ~/.pydistutils.cfg:
[global] command-packages=xdistutils
必须在系统上安装advancecomp软件包。
The recompress command
每个setup.py脚本现在都能理解一个recompress命令,它将 对生成的任何.zip、.egg或.tar.gz文件调用advzip或advdef 以前的命令:
> python setup.py sdist bdist_egg recompress running sdist make: Nothing to be done for `all'. running check reading manifest template 'MANIFEST.in' writing manifest file 'MANIFEST' creating gevent-1.0dev creating gevent-1.0dev/c-ares ... writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt creating 'dist/gevent-1.0dev-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) running recompress advzip -z -4 dist/gevent-1.0dev.zip 1300236 1243960 95% dist/gevent-1.0dev.zip 1300236 1243960 95% advzip -z -4 dist/gevent-1.0dev-py2.7-linux-x86_64.egg 366596 354053 96% dist/gevent-1.0dev-py2.7-linux-x86_64.egg 366596 354053 96%
The bdist_msi_fixed command
bdist_msi用于windows以创建.msi 安装工。这是标准配置的一部分。尽管在distutils中有一个bug 无法将这些.msi文件上载到python包 使用upload命令编制索引。bdist_msi_fixed提供解决方法:
> python setup.py bdist_msi_fixed running bdist_msi_fixed running bdist_msi ... > python setup.py bdist_msi_fixed upload