-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathsetup.py
47 lines (39 loc) · 1.48 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
import os,sys
#from distutils.core import Extension,setup
from setuptools import Extension,setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
mods = list()
mods.append(Extension('clone',
include_dirs=["/usr/include/python"+sys.version],
libraries=['bluetooth'],
extra_compile_args=['-O3','-DPYTHON'+sys.version.replace('.','')],
sources=['lib/' + x for x in ['bdaddr.c', 'oui.c', 'btproxy_clone.c']]))
mods.append(Extension('blocksdp',
include_dirs=[],
libraries=[],
extra_compile_args=[],
sources=['lib/' + x for x in ['blocksdp.c']]))
setup(
name = "btproxy",
version = "0.1",
author = "Conor Patrick",
author_email = "conorpp94@gmail.com",
description = ("A man-in-the-middle tool for doing active Bluetooth analysis. "),
license = "GPL",
keywords = "Bluetooth man-in-the-middle mitm btproxy proxy libbtproxy btmitm",
ext_modules=mods,
url = "https://github.com/conorpp/btproxy",
packages=['libbtproxy'],
scripts=['scripts/btproxy', 'scripts/replace_bluetoothd', 'scripts/bluez_simple_agent_nouser'],
long_description=read('README.md').replace('#',''),
install_requires=['pybluez>=0.21'],
zip_safe=False,
classifiers=[
"Development Status :: 3 - Beta",
"Topic :: Utilities",
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)