exit from pyview by ESC
[lfm.git] / setup.py
blob4e9400d97c693767f52da7157d4e91c84cf967aa
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
5 """Last File Manager is a simple but powerful file manager for the UNIX console
6 It has been developed with the ol' good Midnight Commander as model."""
9 from distutils.core import setup
10 import sys
13 DOC_FILES = ['COPYING', 'README', 'README.pyview', 'NEWS', 'TODO', 'ChangeLog']
14 MAN_FILES = ['lfm.1', 'pyview.1']
16 classifiers = """\
17 Development Status :: 5 - Production/Stable
18 Environment :: Console :: Curses
19 Intended Audience :: End Users/Desktop
20 Intended Audience :: System Administrators
21 License :: OSI Approved :: GNU General Public License (GPL)
22 Natural Language :: English
23 Operating System :: POSIX
24 Operating System :: Unix
25 Programming Language :: Python
26 Topic :: Desktop Environment :: File Managers
27 Topic :: System :: Filesystems
28 Topic :: System :: Shells
29 Topic :: System :: System Shells
30 Topic :: Utilities
31 """
33 doclines = __doc__.split("\n")
35 print doclines
37 if sys.version_info < (2, 3):
38 _setup = setup
39 def setup(**kwargs):
40 if kwargs.has_key("classifiers"):
41 del kwargs["classifiers"]
42 _setup(**kwargs)
45 setup(name = 'lfm',
46 version = '2.0',
47 license = 'GPL',
48 description = doclines[0],
49 long_description = '\n'.join(doclines[2:]),
50 author = 'IƱigo Serna',
51 author_email = 'inigoserna@telefonica.net',
52 url = 'http://www.terra.es/personal7/inigoserna/lfm',
53 platforms = 'POSIX',
54 classifiers = filter(None, classifiers.split("\n")),
55 py_modules = ['lfm/__init__', 'lfm/lfm', 'lfm/messages', 'lfm/files',
56 'lfm/actions', 'lfm/compress', 'lfm/utils', 'lfm/vfs',
57 'lfm/config', 'lfm/pyview'],
58 scripts = ['lfm/lfm', 'lfm/pyview'],
59 data_files = [('share/doc/lfm', DOC_FILES),
60 ('share/man/man1', MAN_FILES)]
61 # **addargs
65 # import os, os.path, sys
66 # from distutils.sysconfig import get_python_lib
67 # os.symlink(os.path.join(get_python_lib(), 'lfm/lfm.py'),
68 # os.path.join(sys.exec_prefix, 'bin/lfm'))