forked from williballenthin/python-idb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·58 lines (52 loc) · 1.54 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
#!/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',
]
# 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')
setup(
name='python-idb',
version='0.5.0',
description='Pure Python parser for IDA Pro databases (.idb files)',
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',
],
)