Skip to content

Commit

Permalink
No need for handling MacOS as a special case
Browse files Browse the repository at this point in the history
.so files are the default format generated by default by distutils' Unix
compiler in MacOS. They are still good enough for us, since they are still
dynamically loadable. .dylib files on the other hand can also be linked
against, but we don't actually need that functionality.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
  • Loading branch information
rtobar committed Jun 20, 2017
1 parent aa91f7b commit e75f8c2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/apps/test_dynlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#
import functools
import os
import platform
import unittest

import six
Expand All @@ -31,12 +30,7 @@
from dfms.drop import InMemoryDROP, NullDROP

_libname = 'dynlib_example'

def _libfname():
plat = platform.platform()
ext = '.dylib' if plat.startswith('Darwin') else '.so'
return 'lib' + _libname + ext

_libfname = 'libdynlib_example.so'
_libpath = os.path.join(os.path.dirname(__file__), _libfname())

# Try to compile the library, if possible. If it's there already we're cool
Expand Down

0 comments on commit e75f8c2

Please sign in to comment.