diff options
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,11 +1,19 @@ #!/usr/bin/env python from distutils.core import setup +import os.path + from libbe import _version rev_id = _version.version_info["revision"] rev_date = _version.version_info["date"] +data_files = [] + +man_path = os.path.join('doc', 'man', 'be.1') +if os.path.exists(man_path): + data_files.append(('share/man/man1', [man_path])) + setup( name='Bugs Everywhere', version=rev_date, @@ -20,7 +28,5 @@ setup( 'libbe.ui.util', 'libbe.util'], scripts=['be'], - data_files=[ - ('share/man/man1', ['doc/man/be.1']), - ] + data_files=data_files, ) |