[CMake] Various problems deploying a python module

Mark Moll mmoll at cs.rice.edu
Fri Jun 25 11:50:31 EDT 2010


On Jun 25, 2010, at 10:05 AM, Janosch Peters wrote:

> 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?


Right. No attempt is made to use OS X-only frameworks or have it work correctly on Windows.

-- 
Mark





More information about the CMake mailing list