Created
March 17, 2015 13:21
-
-
Save MarioVilas/9e7111b8443cb7e116a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same error installing Keystone and same patch solves the issue