summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 6a7024d..68b695d 100644
--- a/setup.py
+++ b/setup.py
@@ -17,10 +17,19 @@
from distutils.core import setup
import glob
+import sys
import cliapp
+# Only install manpages in the 3.x version so that the Debian
+# packaging doesn't end up having it in two packages.
+if sys.version_info > (3,)
+ manpages = [('share/man/man5', glob.glob('*.5'))]
+else:
+ manpages = []
+
+
setup(
name='cliapp',
version=cliapp.__version__,
@@ -47,5 +56,5 @@ setup(
'Topic :: Utilities',
],
packages=['cliapp'],
- data_files=[('share/man/man5', glob.glob('*.5'))],
+ data_files=,
)