python: make setup.py support other *nix systems (i.e non-Windows)

This commit is contained in:
Nguyen Anh Quynh 2015-01-28 13:46:49 +08:00
parent 7b5a250113
commit decc0d3d02

View File

@ -21,10 +21,10 @@ SITE_PACKAGES = os.path.join(get_python_lib(), "capstone")
SETUP_DATA_FILES = []
if SYSTEM == "linux2":
SETUP_DATA_FILES.append("src/libcapstone.so")
elif SYSTEM == "darwin":
if SYSTEM == "darwin":
SETUP_DATA_FILES.append("src/libcapstone.dylib")
elif SYSTEM != "win32":
SETUP_DATA_FILES.append("src/libcapstone.so")
class LazyList(list):
"""A list which re-evaluates each time.