diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 30e4257a..17d2a738 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -36,13 +36,13 @@ SRC_DIR = os.path.join(ROOT_DIR, 'src') BUILD_DIR = SRC_DIR if os.path.exists(SRC_DIR) else os.path.join(ROOT_DIR, '../..') if SYSTEM == 'darwin': - LIBRARY_FILE = "libunicorn.1.dylib" + LIBRARY_FILE = "libunicorn.dylib" STATIC_LIBRARY_FILE = 'libunicorn.a' elif SYSTEM in ('win32', 'cygwin'): LIBRARY_FILE = "unicorn.dll" STATIC_LIBRARY_FILE = None else: - LIBRARY_FILE = "libunicorn.so.1" + LIBRARY_FILE = "libunicorn.so" STATIC_LIBRARY_FILE = 'libunicorn.a' def clean_bins(): @@ -122,7 +122,6 @@ def build_libraries(): shutil.copy(LIBRARY_FILE, LIBS_DIR) if STATIC_LIBRARY_FILE: shutil.copy(STATIC_LIBRARY_FILE, LIBS_DIR) os.chdir(cwd) - if SYSTEM == "linux2": os.symlink(LIBRARY_FILE, os.path.join(LIBS_DIR, 'libunicorn.so')) class custom_sdist(sdist): diff --git a/bindings/python/unicorn/unicorn.py b/bindings/python/unicorn/unicorn.py index 765997ae..8ad351f4 100644 --- a/bindings/python/unicorn/unicorn.py +++ b/bindings/python/unicorn/unicorn.py @@ -18,11 +18,11 @@ if _python2: range = xrange if sys.platform == 'darwin': - _lib = "libunicorn.1.dylib" + _lib = "libunicorn.dylib" elif sys.platform in ('win32', 'cygwin'): _lib = "unicorn.dll" else: - _lib = "libunicorn.so.1" + _lib = "libunicorn.so" # Windows DLL in dependency order _all_windows_dlls = (