forked from programa-stic/barf-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
66 lines (58 loc) · 2.06 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
64
65
66
#! /usr/bin/env python
from setuptools import setup
from setuptools import find_packages
__version__ = '0.2.1'
# https://github.com/aquynh/capstone/issues/583
def fix_setuptools():
"""Work around bugs in setuptools.
Some versions of setuptools are broken and raise SandboxViolation for normal
operations in a virtualenv. We therefore disable the sandbox to avoid these
issues.
"""
try:
from setuptools.sandbox import DirectorySandbox
def violation(operation, *args, **_):
print "SandboxViolation: %s" % (args,)
DirectorySandbox._violation = violation
except ImportError:
pass
# Fix bugs in setuptools.
fix_setuptools()
setup(
author = 'Christian Heitman',
author_email = '[email protected]',
description = 'A multiplatform open source Binary Analysis and Reverse engineering Framework',
download_url = 'https://github.com/programa-stic/barf-project/tarball/v0.2.1',
install_requires = [
'capstone',
'networkx',
'pefile',
'pydot',
'pyelftools',
'pygments',
'pyparsing',
],
license = 'BSD 2-Clause',
name = 'barf',
classifiers = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Security',
'Topic :: Software Development :: Disassemblers',
'Topic :: Software Development :: Interpreters',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages = find_packages(exclude=['tests', 'tests.*']),
url = 'http://github.com/programa-stic/barf-project',
scripts = [
'scripts/barf-install-solvers.sh',
'tools/cfg/BARFcfg',
'tools/cg/BARFcg',
'tools/gadgets/BARFgadgets',
],
version = __version__,
zip_safe = False
)