Skip to content

Commit 4013362

Browse files
committed
Fixed man- & desktopfiles.
committer: Bob Farrell <bob@keys.(none)> --HG-- extra : convert_revision : a24febc593a6fa56484821ca78f564200fc67dfa
1 parent 27ead62 commit 4013362

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

data/bpython.desktop

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Icon=/usr/share/pixmaps/python.xpm
3+
Name=bpython
4+
Comment=A fancy interface to the python interpreter!
5+
Exec=/usr/bin/bpython
6+
Terminal=true
7+
Type=Application
8+
Categories=Development;Utility;ConsoleOnly;
9+
StartupNotify=true

setup.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import distutils.dir_util
1010
import sys, os
1111
import glob
12+
import platform
1213
import re
1314

1415
# Make distutils copy bpython.py to bpython
@@ -30,6 +31,11 @@ def copy_tree(*args, **kwargs):
3031
PYTHONLIB = os.path.join(get_python_lib(standard_lib=1, prefix=""),
3132
"site-packages")
3233

34+
if platform.system() == 'FreeBSD':
35+
man_dir = 'man'
36+
else:
37+
man_dir = 'share/man'
38+
3339
setup(name="bpython",
3440
version = "0.6.4",
3541
description = "Fancy Interface to the Python Interpreter",
@@ -43,6 +49,9 @@ def copy_tree(*args, **kwargs):
4349
""",
4450
packages = ["bpython"],
4551
scripts = ["bpython.py"],
52+
data_files = [
53+
(os.path.join(man_dir, 'man1'), ['doc/bpython.1']),
54+
(os.path.join(man_dir, 'man5'), ['doc/bpythonrc.5']),
55+
('share/applications', ['data/bpython.desktop'])
56+
]
4657
)
47-
48-

0 commit comments

Comments
 (0)