1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Author: Onur Aslan <onur@onur.im>
Description: gumbo python module is trying to load libgumbo.so
libgumbo3 package is providing libgumbo.so.3
This patch is making gumbo python module to load libgumbo.so.3
Forwarded: not-needed
--- a/python/gumbo/gumboc.py
+++ b/python/gumbo/gumboc.py
@@ -41,12 +41,8 @@ try:
_dll = ctypes.cdll.LoadLibrary(os.path.join(
os.path.dirname(__file__), '..', '..', '.libs', _name_of_lib))
except OSError:
- # PyPI or setuptools install, look in the current directory.
- _dll = ctypes.cdll.LoadLibrary(os.path.join(
- os.path.dirname(__file__), _name_of_lib))
-except OSError:
# System library, on unix or mac osx
- _dll = ctypes.cdll.LoadLibrary(_name_of_lib)
+ _dll = ctypes.cdll.LoadLibrary(_name_of_lib + '.3')
# Some aliases for common types.
_bitvector = ctypes.c_uint
|