diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2015-01-07 13:01:29 -0800 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2015-01-07 13:01:29 -0800 |
commit | 512495d435ddd0714d0780faf4c03117dc1ce989 (patch) | |
tree | 757a8dfabcc5b7159c9c6b26f9ba26fda6c857cc /gkeys-gen | |
parent | gentoo-keys: Add the doc and py2man directories to testpath and .gitignore (diff) | |
download | gentoo-keys-512495d435ddd0714d0780faf4c03117dc1ce989.tar.gz gentoo-keys-512495d435ddd0714d0780faf4c03117dc1ce989.tar.bz2 gentoo-keys-512495d435ddd0714d0780faf4c03117dc1ce989.zip |
gkeys, gkeys-gen: Make sdist do .bz2 compression
Diffstat (limited to 'gkeys-gen')
-rwxr-xr-x | gkeys-gen/setup.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gkeys-gen/setup.py b/gkeys-gen/setup.py index 1512219..5fae8f4 100755 --- a/gkeys-gen/setup.py +++ b/gkeys-gen/setup.py @@ -6,6 +6,7 @@ import sys from distutils.core import setup, Command from distutils.command.build import build +from distutils.command.sdist import sdist from glob import glob from gkeygen import __version__, __license__ @@ -62,6 +63,16 @@ class build_man(Command): man.make_subpages(Action_Map, Available_Actions) +class x_sdist(sdist): + """ sdist defaulting to .tar.bz2 format """ + + def finalize_options(self): + if self.formats is None: + self.formats = ['bztar'] + + sdist.finalize_options(self) + + setup( name='gkeys-gen', version=__version__, @@ -84,6 +95,7 @@ setup( cmdclass = { 'build': x_build, 'build_man': build_man, + 'sdist': x_sdist, }, classifiers=[ 'Development Status :: 3 - Alpha', |