File: python-libgraphite-SONAME.diff

package info (click to toggle)
graphite2 1.3.14-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,588 kB
  • sloc: cpp: 14,738; cs: 1,998; python: 1,737; ansic: 1,673; perl: 184; xml: 123; sh: 96; makefile: 62
file content (20 lines) | stat: -rw-r--r-- 593 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/python/graphite2/__init__.py
+++ b/python/graphite2/__init__.py
@@ -32,15 +32,8 @@
                     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)