提供用户分散的命令

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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Gson类中的java验证错误   If和elseif之间的java差异?   字典Java8地图。输入比较器   java连接到远程计算机以获得WMI支持   java如何使用改型处理JSON对象中的空值   在Java中使用Comparator时不可编译的源代码   java将Jar添加到JSP的运行时路径   带有随机对象的while循环的java大O时间复杂性   java可以在不考虑参数的情况下模拟方法吗?   java我有一个简单的代码,它不工作。无法修复错误“println”   向eclipse添加Xively java库   java是否可以启用本机代码的缓存?   全局变量如何在Java中的所有类之间共享要使用的语言环境?   Java内存游戏如何翻转单个卡?