Closed dglmoore closed 7 years ago
Add support for OS X binaries releases of inform.
Support for OS X should be as simple as checking the platform and setting the shared library path in pyinform/__init__.py. Simply adding a branch for "Darwin" should do the trick:
pyinform/__init__.py
if system() == 'Linux': return "{}/lib/libinform.so.{}.{}.{}".format(libdir,major,minor,revision) elif system() == 'Darwin': return "{}/lib/libinform.{}.{}.{}.dylib".format(libdir,major,minor,revision) elif system() == 'Windows': return "{}/lib/inform.dll".format(libdir) else: raise RuntimeError("unsupported platform - \"{}\"".format(system()))
Add support for OS X binaries releases of inform.
Proposed Changes
Support for OS X should be as simple as checking the platform and setting the shared library path in
pyinform/__init__.py
. Simply adding a branch for "Darwin" should do the trick: