mirror of
https://github.com/ceph/ceph
synced 2025-01-02 00:52:22 +00:00
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:
parent
d444d5b886
commit
ab9dda87cf
@ -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:
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user