diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-08-19 21:36:05 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-08-19 21:36:05 +0300 |
commit | 3ee84a8feeb0a98b85ba3d3083300ba38c23279b (patch) | |
tree | 6bb911e23271c2eb8a79c4b3366f6f41be87b56c | |
parent | d6be7e09008d4a3748ca32e09c1744d80be8f39b (diff) | |
download | cliapp-3ee84a8feeb0a98b85ba3d3083300ba38c23279b.tar.gz |
Fix: only install cliapp.5 in python3-cliapp
-rw-r--r-- | setup.py | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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=, ) |