forked from PyUserInput/PyUserInput
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (32 loc) · 1.19 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
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
def long_description():
readme = os.path.join(os.path.dirname(__file__), 'README.md')
with open(readme, 'r') as inf:
readme_text = inf.read()
return(readme_text)
#Check for dependencies
dependencies = []
if sys.platform == 'darwin': # Mac
dependencies.append('pyobjc-framework-Quartz')
elif sys.platform == 'win32': # Windows
dependencies.extend(['pyHook', 'pypiwin32'])
else: # X11 (LInux)
dependencies.append('python-xlib')
setup(name='PyUserInput',
version='0.1.12',
description='A simple, cross-platform module for mouse and keyboard control',
long_description=long_description(),
author='Paul Barton <[email protected]>, Pepijn de Vos <[email protected]>',
author_email='[email protected]', # Replace with mailing list perhaps
url='https://github.com/PyUserInput/PyUserInput',
package_dir = {'': '.'},
packages = ['pykeyboard', 'pymouse'],
license='http://www.gnu.org/licenses/gpl-3.0.html',
keywords='mouse,keyboard user input event',
install_requires=dependencies,
)