pybind: Open shared libs by their major version.

The *.so files are only in the -dev packages, and normal
operation should not require those. The major version
numbers represent incompatible API/ABI changes anyway.
The debian dependencies were already correctly including
the major version.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
This commit is contained in:
Tommi Virtanen 2011-06-10 16:14:13 -07:00
parent d444d5b886
commit ab9dda87cf
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class Rados(object):
Rados object in state %s." % (self.state))
def __init__(self, rados_id = None):
self.librados = CDLL('librados.so')
self.librados = CDLL('librados.so.2')
self.cluster = c_void_p()
ret = self.librados.rados_create(byref(self.cluster), c_char_p(rados_id))
if ret != 0:

View File

@ -12,7 +12,7 @@ import time
class Rgw(object):
"""librgw python wrapper"""
def __init__(self):
self.lib = CDLL('librgw.so')
self.lib = CDLL('librgw.so.1')
self.rgw = c_void_p(0)
ret = self.lib.librgw_create(byref(self.rgw), 0)
if (ret != 0):