-
Notifications
You must be signed in to change notification settings - Fork 40
/
setup.py
executable file
·37 lines (27 loc) · 1.06 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
# -*- coding: utf-8 -*-
"""setup.py: distutils.core setup control."""
import re
from distutils.core import setup, Extension
with open("README.md", "rb") as f:
long_descr = f.read().decode("utf-8")
#grab version from blesuite/blesuite.py
version = re.search(
'^__version__\s*=\s*"(.*)"',
open('blesuite/__init__.py').read(),
re.M
).group(1)
c_ext = Extension("bdaddr", sources=["tools/bdaddr.c", "tools/oui.c"],
libraries=["bluetooth"])
setup(
name = "blesuite",
packages = ['blesuite', 'blesuite.entities', 'blesuite.utils',
'blesuite.cli', 'blesuite.pybt', 'blesuite.replay',
'blesuite.replay.btsnoop', 'blesuite.replay.btsnoop.btsnoop',
'blesuite.replay.btsnoop.android','blesuite.replay.btsnoop.bt'],
ext_modules = [c_ext],
scripts = ["bin/blesuite", "bin/ble-replay"],
version = version,
description = "Python library for communicating with and testing Bluetooth LE devices.",
author = "Taylor Trabun",
author_email = "[email protected]",
)