diff options
author | Chris Ball <cjb@laptop.org> | 2010-10-31 06:30:26 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-10-31 06:30:26 -0400 |
commit | 3236d6c38c9197c9947aa63c2d1a28a18436837d (patch) | |
tree | 3fa2781f594c217dafe3273e8ef28c64dd9a3783 /setup.py | |
parent | de0c34c809144ed045628f241ec57e7007bc5f06 (diff) | |
parent | e7b121e746116140d6566e6fbc5e1e2cc2769b64 (diff) | |
download | bugseverywhere-3236d6c38c9197c9947aa63c2d1a28a18436837d.tar.gz |
Merge branch 'master' of http://www.physics.drexel.edu/~wking/code/git/be
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, ) |