mirror of
https://github.com/kennethreitz-archive/bpython-gist.git
synced 2026-06-05 15:40:17 +00:00
Fixed man- & desktopfiles.
This commit is contained in:
committed by
Bob Farrell
parent
dc69b0b244
commit
a24febc593
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Icon=/usr/share/pixmaps/python.xpm
|
||||
Name=bpython
|
||||
Comment=A fancy interface to the python interpreter!
|
||||
Exec=/usr/bin/bpython
|
||||
Terminal=true
|
||||
Type=Application
|
||||
Categories=Development;Utility;ConsoleOnly;
|
||||
StartupNotify=true
|
||||
@@ -9,6 +9,7 @@ import distutils.file_util
|
||||
import distutils.dir_util
|
||||
import sys, os
|
||||
import glob
|
||||
import platform
|
||||
import re
|
||||
|
||||
# Make distutils copy bpython.py to bpython
|
||||
@@ -30,6 +31,11 @@ distutils.dir_util.copy_tree = copy_tree
|
||||
PYTHONLIB = os.path.join(get_python_lib(standard_lib=1, prefix=""),
|
||||
"site-packages")
|
||||
|
||||
if platform.system() == 'FreeBSD':
|
||||
man_dir = 'man'
|
||||
else:
|
||||
man_dir = 'share/man'
|
||||
|
||||
setup(name="bpython",
|
||||
version = "0.6.4",
|
||||
description = "Fancy Interface to the Python Interpreter",
|
||||
@@ -43,6 +49,9 @@ bpython is a fancy interface to the Python interpreter for Unix-like operating s
|
||||
""",
|
||||
packages = ["bpython"],
|
||||
scripts = ["bpython.py"],
|
||||
data_files = [
|
||||
(os.path.join(man_dir, 'man1'), ['doc/bpython.1']),
|
||||
(os.path.join(man_dir, 'man5'), ['doc/bpythonrc.5']),
|
||||
('share/applications', ['data/bpython.desktop'])
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user