-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathsetup.py
43 lines (38 loc) · 1.67 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
'''pyHook: Python wrapper for out-of-context input hooks in Windows
The pyHook package provides callbacks for global mouse and keyboard events in Windows. Python
applications register event handlers for user input events such as left mouse down, left mouse up,
key down, etc. and set the keyboard and/or mouse hook. The underlying C library reports information
like the time of the event, the name of the window in which the event occurred, the value of the
event, any keyboard modifiers, etc.
'''
classifiers = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python
Topic :: System :: Monitoring
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: Microsoft :: Windows
"""
from setuptools import setup, Extension
libs = ['user32']
doclines = __doc__.split('\n')
setup(name='pyHook',
version='1.5.1',
maintainer='Daniel Folkinshteyn',
maintainer_email='[email protected]',
author='Peter Parente',
author_email='[email protected]',
url='http://pyhook.sourceforge.net',
download_url='http://www.sourceforge.net/projects/pyhook',
license='http://www.opensource.org/licenses/mit-license.php',
platforms=['Win32'],
description = doclines[0],
classifiers = filter(None, classifiers.split('\n')),
long_description = ' '.join(doclines[2:]),
packages = ['pyHook'],
package_dir = {'pyHook' : ""},
ext_modules = [Extension('pyHook._cpyHook', ['cpyHook.i'], libraries=libs)],
data_files=[('Lib/site-packages/pyHook', ['LICENSE.txt', 'README.txt','CHANGELOG.txt'])],
use_2to3=True
)