<filename>proof-of-concept/pyhidapi/setup.py
#!/usr/bin/env python
#
##########################################################################
# Copyright (C) 2014 <NAME>, NF6X
#
# This file is part of pyhidapi.
#
#  pyhidapi is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  pyhidapi is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with pyhidapi.  If not, see <http://www.gnu.org/licenses/>.
##########################################################################

"""Installation script for pyhidapi.

pyhidapi is a Python binding for hidapi, which is a library for
communicating with USB HID hardware in a platform-independent manner.

Usage examples:

    Install in your user directory:
        ./setup.py install --user

    Install in the system default location:
        sudo ./setup.py install

    Install under /usr/local:
        sudo ./setup.py install --prefix /usr/local

    Create a source distribution:
        ./setup.py sdist

"""


from distutils.core import setup
from hidapi import __version__, __pkg_url__, __dl_url__

setup(name          = 'pyhidapi',
      version       = __version__,
      description   = 'Python binding for hidapi library.',
      author        = '<NAME>',
      author_email  = '<EMAIL>',
      url           = __pkg_url__,
      download_url  = __dl_url__,
      license       = 'GPLv3',
      packages      = ['hidapi'],
      scripts       = ['hidapi_enum.py'])

