This is the thread's initial revision.
On some distros (for example Arch) kdesrc-build has problems building some modules because /usr/bin/python points to /usr/bin/python3. I worked around the issue by compiling these modules manually with the cmake flag -DPYTHON_EXECUTABLE=/usr/bin/python2. Could there be a mention of this somewhere, along with a suggested fix? I don't know if my solution is any good.