-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
executable file
·57 lines (45 loc) · 1.8 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python
#
##########################################################################
# Copyright (C) 2014 Mark J. Blair, 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 = 'Mark J. Blair',
author_email = 'nf6x@nf6x.net',
url = __pkg_url__,
download_url = __dl_url__,
license = 'GPLv3',
packages = ['hidapi'],
scripts = ['hidapi_enum.py'])