summary refs log blame commit diff stats
path: root/setup.py
blob: 4fbbccba5b862933a299991e5aa710782fcb414e (plain) (tree)
a title='author hut <hut@lavabit.com> 2013-03-09 19:07:34 +0100 committer hut <hut@lavabit.com> 2013-03-09 19:07:34 +0100 setup.py: create a /usr/share/doc/ranger directory' href='/akspecs/ranger/commit/setup.py?h=v1.9.0&id=3b96a37f7f50e9c0f67ca1ed2374b948262bf682'>3b96a37f ^
1
2
3
4
5
6
7
8
9
10
                     

                                                                 
 





                                                        
              

             
                        

                                                                       
 
                          
          






                                            
                                       
                                                    




                                 
                             
                                
                              
                                          
                                                    

                                                                
                                                              
                                                                
          








                                                            
                               
                                       
                                    
#!/usr/bin/env python
# This file is part of ranger, the console file manager.
# License: GNU GPL version 3, see the file "AUTHORS" for details.

# Setuptools is superior but not available in the stdlib
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

import os.path
import ranger

def _findall(directory):
    return [os.path.join(directory, f) for f in os.listdir(directory) \
            if os.path.isfile(os.path.join(directory, f))]

if __name__ == '__main__':
    setup(
        name='ranger',
        description='Vim-like file manager',
        long_description=ranger.__doc__,
        version=ranger.__version__,
        author=ranger.__author__,
        author_email=ranger.__email__,
        license=ranger.__license__,
        url='http://ranger.nongnu.org',
        scripts=['scripts/ranger', 'scripts/rifle'],
        data_files=[
            ('share/man/man1',
                ['doc/ranger.1',
                 'doc/rifle.1']),
            ('share/doc/ranger',
                ['README.md',
                 'CHANGELOG.md',
                 'HACKING.md',
                 'doc/colorschemes.txt']),
            ('share/doc/ranger/config/colorschemes',
                _findall('doc/config/colorschemes')),
            ('share/doc/ranger/config', _findall('doc/config')),
            ('share/doc/ranger/tools', _findall('doc/tools')),
            ('share/doc/ranger/examples', _findall('examples')),
        ],
        package_data={'ranger': ['data/*', 'config/rc.conf',
            'config/rifle.conf']},
        packages=('ranger',
                  'ranger.api',
                  'ranger.colorschemes',
                  'ranger.container',
                  'ranger.core',
                  'ranger.config',
                  'ranger.ext',
                  'ranger.gui',
                  'ranger.gui.widgets',
                  'ranger.ext.vcs'))