![]() |
[SOLVED] Question about building the Python interface and Codegeneration - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: [SOLVED] Question about building the Python interface and Codegeneration (/showthread.php?tid=372690) |
[SOLVED] Question about building the Python interface and Codegeneration - DeltaMikeCharlie - 2023-03-24 I've been working on a bug fix for the 'xbmc.getLanguage()' Python function that I have previously described here: 372626 (thread) I was having problems getting my Python script to recognise a new ENUM that I had created and my research lead me to this: Codegeneration (wiki) solution. And specifically, this: Code: In order to run the codegenerator on any changes you made to the native api in interfaces/legacy you need to run 'make' from xbmc/interfaces/python. Code: make: *** No targets specified and no makefile found. Stop. If I create a new build environment from scratch, I am able to recompile everything and the new ENUM works fine, it just takes a long time to recompile. One of the steps in creating the new build environment must also rebuild the required files (./build/swig/AddonModuleXbmc.i.cpp, etc), however, I am unable to find the command to achieve this. Any advice will be gratefully received. I'm using an Ubuntu build environment. RE: Question about building the Python interface and Codegeneration - DeltaMikeCharlie - 2023-04-06 If anyone else encountered this issue, here is the solution that I use. I'm not sure if this is the 'best' solution, but this is what I've discovered: For reference, my normal build time, from scratch, is about 32 minutes. When I have made changes to one of the Python module files that would normally be ignored by a 'normal' rebuild, I do the following:
The build time after doing this is just under 5 minutes and the changes to the Python module are now present and working in the executable produced. |