Remove version number from shared library filename packaged with python bindings

This commit is contained in:
Andrew Dutcher 2016-09-08 12:34:58 -07:00
parent 6c042410ae
commit edd49cd21c
2 changed files with 4 additions and 5 deletions

View file

@ -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):

View file

@ -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 = (