aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2015-01-07 13:01:29 -0800
committerBrian Dolbec <dolsen@gentoo.org>2015-01-07 13:01:29 -0800
commit512495d435ddd0714d0780faf4c03117dc1ce989 (patch)
tree757a8dfabcc5b7159c9c6b26f9ba26fda6c857cc /gkeys-gen/setup.py
parentgentoo-keys: Add the doc and py2man directories to testpath and .gitignore (diff)
downloadgentoo-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/setup.py')
-rwxr-xr-xgkeys-gen/setup.py12
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',