-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
48 lines (39 loc) · 1.26 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
from setuptools import setup, find_packages, Extension
import sys
import os
__version__ = '1.0.8'
include_dirs = ['/usr/local/opt/openssl/include'] if sys.platform == "darwin" else []
upc_keys = Extension('upc_keys',
sources=['upc_keys.c'],
libraries=['crypto'],
include_dirs=include_dirs,)
def read_file(filename):
try:
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
except IOError:
return ''
setup(
name='crackupc',
packages=find_packages(),
version=__version__,
description='upc_keys.py -- WPA2 passphrase recovery tool for UPC%07d devices',
long_description=read_file('README.md'),
author='dsc',
author_email='sander@cedsys.nl',
url='https://github.com/skftn/upc_keys.py/',
download_url='https://github.com/skftn/upc_keys.py/tarball/v%s' % __version__,
include_package_data=True,
zip_safe=False,
ext_modules=[upc_keys],
entry_points={
'console_scripts': [
'crack-upc=crack_upc.__main__:Main',
],
},
classifiers=[
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
],
)