From d954dae090ba35ec0ba4564279e187c226759288 Mon Sep 17 00:00:00 2001 From: Nguyen Tan Cong Date: Mon, 2 Feb 2015 12:08:45 +0700 Subject: [PATCH] fixbug: can't install on centos & python 2.6 --- bindings/python/setup.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index bbad3500..e0c34bb9 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -22,19 +22,6 @@ SITE_PACKAGES = os.path.join(get_python_lib(), "capstone") SETUP_DATA_FILES = [] - -class LazyList(list): - """A list which re-evaluates each time. - This is used to provide late binding for setup() below. - """ - def __init__(self, callback): - super(LazyList, self).__init__() - self.callback = callback - - def __iter__(self): - return iter(self.callback()) - - def copy_sources(): """Copy the C sources into the source directory. This rearranges the source files under the python distribution @@ -158,7 +145,7 @@ setup( libraries=[( 'capstone', dict( package='capstone', - sources=LazyList(dummy_src) + sources=dummy_src() ), )],