Skip to content

Commit

Permalink
Fix names of shared objects
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayP13 committed Nov 12, 2018
1 parent b9401e9 commit 6e6f96a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,13 @@ def copy_shared_objects():
so = os.path.join(root, filename)
so_base = os.path.basename(so)
if SO_SUFFIX in so_base:
p_ext = '.' + PACKAGE_NAME
ext = get_shared_object_ext()
so_base_new = so_base.replace(SO_SUFFIX, '.' + PACKAGE_NAME)
so_base_new = '.'.join(so_base_new.split('.')[:-2]) + ext
so_base_new = so_base.replace(SO_SUFFIX, p_ext)
so_base_new = '.'.join(so_base_new.split('.')[:-2])
if not so_base_new.endswith(p_ext):
so_base_new += p_ext
so_base_new = so_base_new + ext
dest_1 = os.path.join(BUILD_THIRD_PARTY, so_base_new)
dest_2 = os.path.join(THIRD_PARTY, so_base_new)
try:
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = ('0', '0', '26')
__version_info__ = ('0', '0', '27')
__version__ = '.'.join(__version_info__)

0 comments on commit 6e6f96a

Please sign in to comment.