Skip to content

Commit

Permalink
Add libmgrs builds for Mac 10.7+ and Ubuntu 14.04
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Mar 30, 2015
1 parent 3fcb856 commit 447a706
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ext-libs/mgrs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ def free(m):
raise
elif os.name == 'posix':
platform = os.uname()[0]
lib_name = 'libmgrs.so'
local_library_path = os.path.abspath(os.path.dirname(__file__) + "/..")
if platform.lower().startswith('dar'):
lib_name = 'libmgrs_mac.so'
else:
lib_name = 'libmgrs.so'
local_library_path = os.path.abspath(os.path.dirname(__file__))
free = ctypes.CDLL(find_library('c')).free
rt = ctypes.CDLL(os.path.join(local_library_path, lib_name))
else:
Expand Down
Binary file added ext-libs/mgrs/libmgrs.so
Binary file not shown.
Binary file added ext-libs/mgrs/libmgrs_mac.so
Binary file not shown.

0 comments on commit 447a706

Please sign in to comment.