[CMake] Various problems deploying a python module

Janosch Peters jp at binford3000.de
Fri Jun 25 11:05:13 EDT 2010


On 2010-06-25 16:32:38 +0200, Mark Moll said:
> 
> On Jun 25, 2010, at 9:11 AM, Janosch Peters wrote:
>> Ok. But the python dilemma still remains:
> 
>> 1. FindPythonInterp and FindPythonLibs might still produce inconsistent 
>> results (e.g. libs and interpreter of different python versions)
>> 2. AFAIK you cannot specify a specific python version you which to include/link
> 
>> I think someone on the list suggested to merge both modules into one, 
>> which would help making the results consistent. Is this (or any other 
>> solution) on your todo list?
> 
> 
> I suggested the merge, and proposed to add a function to check for the 
> existence of python modules:
> http://www.cmake.org/pipermail/cmake/2010-June/037468.html
> 
> On my OS X machine, the headers and libs for different python versions 
> also exist in the more common UNIX places (/usr/include/python2.x, 
> /usr/lib/libpython2.x.dylib, /usr/lib/python2.x/config/libpython2.x.a, 
> and corresponding MacPorts locations).


> I don’t know of any way you can specify a specific version of a 
> framework, so (at least for python) it seems easier to drop framework 
> support altogether and just use the UNIX paths.

I thought "-framework 'path/to/the/framework/you/want/to/use'" would 
work, but I havent tested it. Anyway, your find_package script looks 
very promising. I'll give it a try. What do you mean by UNIX-biased? 
Does it work only on Unix/Linux/OS X?

Would be great if that script would be considered for one of the next releases.

--
Janosch




More information about the CMake mailing list