Skip to content

Commit

Permalink
Setup: install man page relative to sys.prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
williamh committed Sep 1, 2014
1 parent 2813530 commit 128ac8d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
from distutils.core import setup
from bugz import __version__

# when using virtualenv; trust that man will find the nearby directory
if 'VIRTUAL_ENV' in os.environ:
man_pages = 'man/man1'
else:
man_pages = '/usr/share/man/man1'

setup(
name = 'pybugz',
version = __version__,
Expand All @@ -20,6 +14,6 @@
packages = ['bugz'],
scripts = ['bin/bugz'],
data_files = [
(man_pages, ['man/bugz.1']),
('share/man/man1', ['man/bugz.1']),
],
)

0 comments on commit 128ac8d

Please sign in to comment.