Skip to main content

provide useful distutils commands

Project description

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 currently provides a recompress command for python’s setup.py scripts. It uses the advancecomp package in order to achieve better compression on .zip, .egg and .tar.gz files. Other extensions for distutils may be included in future xdistutils releases.

Installation

xdistutils can be installed with pip or easy_install. In order to enable the recompress command, you’ll have to register the package with distutils. This can be done by adding the following to ~/.pydistutils.cfg:

[global]
command-packages=xdistutils

The advancecomp package must be installed on your system.

The recompress command

Every setup.py script now understands a recompress command, which will call advzip or advdef on any .zip, .egg or .tar.gz file generated by previous commands:

> 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 is used on windows in order to create a .msi installler. It’s part of standard distutils. Though a bug in distutils makes it impossible to upload those .msi files to the python package index with the upload command. bdist_msi_fixed provides a workaround:

> python setup.py bdist_msi_fixed
running bdist_msi_fixed
running bdist_msi
...
> python setup.py bdist_msi_fixed upload

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xdistutils-0.2.0.zip (4.4 kB view details)

Uploaded Source

File details

Details for the file xdistutils-0.2.0.zip.

File metadata

  • Download URL: xdistutils-0.2.0.zip
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdistutils-0.2.0.zip
Algorithm Hash digest
SHA256 b08f271657a61e9aca94f09ab1aae534746091f1676ecd47532864b44fd5f999
MD5 425f36ed9c5852a2318e59582c22dce9
BLAKE2b-256 a40545c5d98ee0b8a6695789e3d161663f636e63ad547457dbed00b8d7d262d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page