<commit_before>#!/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<=0.2.3', 'cryptography>=1.0', 'future', 'ipython>=5.0.0', 'networkx', 'pygments']
else:
    install_requires = ['pyasn1<=0.2.3', 'cryptography>=1.0', 'future', 'ipython>=5.0.0,<6', 'networkx', 'pygments'],

from androguard import __version__
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',<commit_msg>resolve #286 by disallowing 0.3.1 and 0.3.2 of pyasn1<commit_after>#!/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
# There is a bug in pyasn1 0.3.1 and 0.3.2, so do not use them!
if sys.version_info >= (3, 3):
    install_requires = ['pyasn1<=0.2.3,>0.3.2', 'cryptography>=1.0', 'future', 'ipython>=5.0.0', 'networkx', 'pygments']
else:
    install_requires = ['pyasn1<=0.2.3,>0.3.2', 'cryptography>=1.0', 'future', 'ipython>=5.0.0,<6', 'networkx', 'pygments'],

from androguard import __version__
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',
{'fraction_non_alphanumeric': 0.15939278937381404, 'fraction_numerical': 0.027703984819734344, 'mean_word_length': 3.600349040139616, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '270139', 'n_tokens_mistral': 921, 'n_tokens_neox': 887, 'n_words': 214}