Package: graphite2 / 1.3.13-7

python-libgraphite-SONAME.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/python/graphite2/__init__.py b/python/graphite2/__init__.py
index 2d03470..901bbb5 100644
--- a/python/graphite2/__init__.py
+++ b/python/graphite2/__init__.py
@@ -32,15 +32,8 @@ from ctypes import (byref,
                     CFUNCTYPE, POINTER, Structure)
 
 
-libpath = os.environ.get('PYGRAPHITE2_LIBRARY_PATH',
-                         ctypes.util.find_library("graphite2"))
-if libpath is None:
-    # find wheel's library
-    wheel = os.path.dirname(__file__)
-    if os.name == 'nt':
-        libpath = os.path.join(wheel, 'bin', 'graphite2.dll')
-    else:
-        libpath = os.path.join(wheel, 'lib', 'libgraphite2.so')
+libpath = "libgraphite2.so.3"
+
 gr2 = ctypes.cdll.LoadLibrary(libpath)