forked from androguard/androguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (51 loc) · 2.13 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
#!/usr/bin/env python
import sys
import os
from androguard import __version__
from setuptools import setup, find_packages
# workaround issue on OSX, where sys.prefix is not an installable location
if sys.platform == 'darwin' and sys.prefix.startswith('/System'):
data_prefix = os.path.join('.', 'share', 'androguard')
elif sys.platform == 'win32':
data_prefix = os.path.join(sys.prefix, 'Scripts', 'androguard')
else:
data_prefix = os.path.join(sys.prefix, 'share', 'androguard')
# There is a bug in pyasn1 0.3.1 and 0.3.2, so do not use them!
base_requirements = ['pyasn1!=0.3.1,!=0.3.2,!=0.3.3',
'cryptography>=1.0',
'future',
'networkx',
'pygments',
]
# IPython Issue: For python2.x, a version <6 is required
if sys.version_info >= (3, 3):
install_requires = ['ipython>=5.0.0'] + base_requirements
else:
install_requires = ['ipython>=5.0.0,<6'] + base_requirements
setup(
name='androguard',
description='Androguard is a full python tool to play with Android files.',
version=__version__,
packages=find_packages(),
data_files=[(data_prefix,
['androguard/gui/annotation.ui',
'androguard/gui/search.ui',
'androguard/gui/androguard.ico'])],
scripts=['androaxml.py',
'androlyze.py',
'androdd.py',
'androgui.py',],
install_requires=install_requires,
extras_require={
'GUI': ["pyperclip", "PyQt5"],
# We support the following three magic packages:
# * filemagic from https://pypi.python.org/pypi/filemagic
# * file-magic from https://pypi.python.org/pypi/file-magic (which is the "offical" one, and also in Debian)
# * python-magic from https://pypi.python.org/pypi/python-magic
# If you are installing on debian you can use python3-magic instead, which fulfills the dependency to file-magic
'magic': ['file-magic'],
'docs': ['sphinx', 'sphinxcontrib-programoutput', 'sphinx_rtd_theme'],
'graphing': ['pydot'],
},
setup_requires=['setuptools'],
)