#! /usr/bin/env python

from setuptools import setup
from setuptools import find_packages

setup(
    author           = 'Christian Heitman',
    author_email     = 'cnheitman@fundacionsadosky.org.ar',
    description      = 'A multiplatform open source Binary Analysis and Reverse engineering Framework',
    install_requires = [
        'capstone',
        'networkx',
        'pefile',
        'pybfd',
        'pydot',
        'pygments',
        'pyparsing',
        'sphinx',
    ],
    license          = 'BSD 2-Clause',
    name             = 'barf',
    packages         = find_packages(),
    url              = 'http://github.com/programa-stic/barf-project',
    scripts          = [
        'tools/gadgets/BARFgadgets'
    ],
    version          = '0.2',
    zip_safe         = False
)

@@ -84,16 +84,602 @@
 ckages%0A%0A
+%0A# https://github.com/aquynh/capstone/issues/583%0Adef fix_setuptools():%0A    %22%22%22Work around bugs in setuptools.%0A%0A    Some versions of setuptools are broken and raise SandboxViolation for normal%0A    operations in a virtualenv. We therefore disable the sandbox to avoid these%0A    issues.%0A    %22%22%22%0A    try:%0A        from setuptools.sandbox import DirectorySandbox%0A%0A        def violation(operation, *args, **_):%0A            print %22SandboxViolation: %25s%22 %25 (args,)%0A%0A        DirectorySandbox._violation = violation%0A    except ImportError:%0A        pass%0A%0A# Fix bugs in setuptools.%0Afix_setuptools()%0A%0A
 setup(%0A 

Fix Capstone installation error on virtualenvs