-
Notifications
You must be signed in to change notification settings - Fork 73
/
setup.py
executable file
·63 lines (54 loc) · 1.84 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
# For Testing:
#
# python3.4 setup.py register -r https://testpypi.python.org/pypi
# python3.4 setup.py bdist_wheel upload -r https://testpypi.python.org/pypi
# python3.4 -m pip install -i https://testpypi.python.org/pypi
#
# For Realz:
#
# python3.4 setup.py register
# python3.4 setup.py bdist_wheel upload
# python3.4 -m pip install
PY3_DEPS = ["six", "hexdump", "vivisect-vstruct-wb>=1.0.3", "cached-property"]
# python2.7 has no `functools.lru_cache`,
# so use a backported copy when necessary.
PY2_DEPS = PY3_DEPS + ["functools32"]
if sys.version_info[0] == 2:
DEPS = PY2_DEPS
elif sys.version_info[0] == 3:
DEPS = PY3_DEPS
else:
raise RuntimeError("unexpected python major version")
def readme():
with open("readme.md") as f:
return f.read()
setup(
name="python-idb",
version="0.7.1",
description="Pure Python parser for IDA Pro databases (.idb files)",
long_description=readme(),
long_description_content_type="text/markdown",
author="Willi Ballenthin",
author_email="[email protected]",
url="https://github.com/williballenthin/python-idb",
license="Apache License 2.0",
install_requires=DEPS,
extras_require={
# install like `pip install python-idb[disassembly]`
# note, capstone is annoying to install on windows and in virtualenvs.
"disassembly": ["capstone"],
},
packages=find_packages(exclude=["*.tests", "*.tests.*"]),
entry_points={"console_scripts": []},
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Topic :: Security",
"Topic :: Software Development :: Disassemblers",
],
)