androguard/setup.py
2017-06-12 10:56:28 +02:00

44 lines
1.6 KiB
Python

#!/usr/bin/env python
import sys
import os
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')
# IPython Issue: For python2.x, a version <6 is required
if sys.version_info >= (3,3):
install_requires = ['pyasn1', 'cryptography>=1.0', 'future', 'ipython>=5.0.0', 'networkx', 'pygments', 'sphinx', 'sphinxcontrib-programoutput']
else:
install_requires = ['pyasn1', 'cryptography>=1.0', 'future', 'ipython>=5.0.0,<6', 'networkx', 'pygments', 'sphinx', 'sphinxcontrib-programoutput'],
setup(
name='androguard',
description='Androguard is a full python tool to play with Android files.',
version='2.0',
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"],
# If you are installing on debian, you can use python3-magic instead
'magic': ['filemagic'],
'graphing': ['pydot'],
},
setup_requires=['setuptools'],
)