explicitly use QLibrary to load libpython
Review Request #126549 - Created Dec. 28, 2015 and updated
Explicitly use QLibrary to load libpython, like pykde, to avoid missing symbols (among other things).
This fix has been deployed and tested in fedora (and maybe opensuse too).
|Don't you want to check whether the library is actually loading successfully? The load could fail.||Boudhayan Gupta|
+1 from me. It seems a bunch of people online have posted having to dlopen() libPython to load the math symbols, so while this is an ugly hack it's a valid ugly hack at that.
My reservation is about this doing something bad on systems that don't build Python with shared math symbols, but if that's not a problem, I don't see anything wrong with this patch.
This hack is not going into Kig. It belongs at the package level in Fedora, OpenSuse and other distros that compile with --enable-shared. My bug report to Python is at http://bugs.python.org/issue24783.