Building kdev-python: control python exec. search from command line?

René J.V. Bertin rjvbertin at gmail.com
Fri Feb 27 19:01:46 GMT 2015


On Friday February 27 2015 19:06:34 Sven Brauch wrote:

Hi

> I'm not sure, but looking at the FindPythonInterp.cmake file, it seems
> to use find_program, so it should be possible to influence its behaviour
> by any of the means documented for that command (see
> http://www.cmake.org/cmake/help/v3.0/command/find_program.html). I hope
> that works.

Possibly indeed, but it seems that would require hacking of the FindPythonInterp.cmake module, which isn't very elegant.
For now I've been following up on the suggestion from the CMake ML, and copied FindPython3Interp.cmake and FindPython3Libs.cmake from [https://qt.gitorious.org/pyside/shiboken/source/fdf8e4b70e2a82cda581ceae06a1c98fb20114f0:cmake/Modules] into kdev-python's cmake/modules directory (which I had to create). Some editing of those files was necessary to bring them up to date and get them to find the required Python libraries from MacPorts (= on OS X), but it seems to work.

Since kdev-python 1.7.1 for use with kdevplatform 1.7.1 is apparently still in git only I'll file a Review Request when I'm done.

R.



More information about the KDevelop mailing list