Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wolfi323:branches:KDE:Frameworks5
kig4
Try-to-fix-Python-3-build.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Try-to-fix-Python-3-build.patch of Package kig4
From c0aa768f28219ce8b3c275a6d13ad69757e3c7af Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan <yurchor@ukr.net> Date: Tue, 22 Oct 2019 20:42:51 +0300 Subject: Try to fix Python 3 build --- scripting/python_scripter.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripting/python_scripter.cc b/scripting/python_scripter.cc index e60a90c..62a7409 100644 --- a/scripting/python_scripter.cc +++ b/scripting/python_scripter.cc @@ -390,7 +390,11 @@ PythonScripter::PythonScripter() // the newstring stuff is to prevent warnings about conversion from // const char* to char*.. char* s = newstring( "kig" ); +#if PY_VERSION_HEX >= 0x03000000 + PyImport_AppendInittab( s, PyInit_kig ); +#else PyImport_AppendInittab( s, initkig ); +#endif // we can't delete this yet, since python keeps a pointer to it.. // This means we have a small but harmless memory leak here, but it // doesn't hurt at all, since it could only be freed at the end of -- cgit v1.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor