Skip to content
Snippets Groups Projects
setup.py 1.6 KiB
Newer Older
  • Learn to ignore specific revisions
  • Olivier J.N. Bertrand's avatar
    Olivier J.N. Bertrand committed
    #!/usr/bin/env python
    
    """ setup.py for Insect Navigation Toolbox
    (called navipy)
    
    Olivier J.N. Bertrand's avatar
    Olivier J.N. Bertrand committed
    """
    
    from setuptools import setup, find_packages
    
    Olivier J.N. Bertrand's avatar
    Olivier J.N. Bertrand committed
    
    excluded = []
    
    
    def exclude_package(pkg):
        for exclude in excluded:
            if pkg.startswith(exclude):
                return True
        return False
    
    
    def create_package_list(base_package):
        return ([base_package] +
                [base_package + '.' + pkg
                 for pkg
                 in find_packages(base_package)
                 if not exclude_package(pkg)])
    
    
    setup_dict = {'name': 'navipy',
                  'version': '0.1',
                  'author': "Olivier J.N. Bertrand",
                  'author_email': 'olivier.bertrand@uni-bielefeld.de',
                  'description': 'Insect Navigation Toolbox',
                  'packages': create_package_list("navipy"),
    
                  'requires': ['numpy',
                               'pandas',
                               'matplotlib',
                               'scipy',
    
    Jinglin Li's avatar
    Jinglin Li committed
                               'networkx'],
    
                  'install_requires': ["numpy",
                                       'pandas',
                                       'matplotlib',
                                       'scipy',
                                       'sphinx_rtd_theme',
                                       'networkx',
                                       'sphinx-argparse'],
    
                  'package_data': {'navipy': ['resources/database.db',
                                              'resources/forest_world.blend']},
    
                  'include_package_data': True,
                  'console_scripts': [
    
    Olivier Bertrand's avatar
    Olivier Bertrand committed
                      'blendnavipy = navipy.sensors.blendnavipy:main_func'], }
    
    Olivier J.N. Bertrand's avatar
    Olivier J.N. Bertrand committed
    
    setup(**setup_dict)