Skip to content

Instantly share code, notes, and snippets.

@MarioVilas
Created March 17, 2015 13:21
Show Gist options
  • Save MarioVilas/9e7111b8443cb7e116a4 to your computer and use it in GitHub Desktop.
Save MarioVilas/9e7111b8443cb7e116a4 to your computer and use it in GitHub Desktop.
diff --git a/bindings/python/setup.py b/bindings/python/setup.py
old mode 100644
new mode 100755
index acfe7ed..4728455
--- a/bindings/python/setup.py
+++ b/bindings/python/setup.py
@@ -98,7 +98,7 @@ class custom_build_clib(build_clib):
build_clib.finalize_options(self)
def build_libraries(self, libraries):
- if SYSTEM == "win32":
+ if SYSTEM in ("win32", "cygwin"):
# if Windows prebuilt library is available, then include it
if is_64bits and os.path.exists(PATH_LIB64):
SETUP_DATA_FILES.append(PATH_LIB64)
@@ -134,10 +134,12 @@ class custom_build_clib(build_clib):
if SYSTEM == "darwin":
SETUP_DATA_FILES.append("src/libcapstone.dylib")
- elif SYSTEM != "win32":
- SETUP_DATA_FILES.append("src/libcapstone.so")
- else: # Windows
+ elif SYSTEM == "win32":
SETUP_DATA_FILES.append("src/build/capstone.dll")
+ elif SYSTEM == "cygwin":
+ SETUP_DATA_FILES.append("src/capstone.dll")
+ else: # Unix
+ SETUP_DATA_FILES.append("src/libcapstone.so")
os.chdir("..")
except:
@enovella
Copy link

enovella commented Jan 7, 2018

Same error installing Keystone and same patch solves the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment