Re: [CMake] Various problems deploying a python module

2010-06-26 Thread Janosch Peters
On 2010-06-26 01:33:54 +0200, Michael Hertling said: Anyway, one should not take it too lightly; IMO, writing a fully featured, reliable and consistent FindPython.cmake is rather a nontrivial task. True. But it would be great to have sth which performs siginificantly better than the curren scr

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Janosch Peters
On 2010-06-25 18:36:06 +0200, Michael Wild said: AFAIK all directories you give gcc with the "-I" option will be searched _before_ the standard include paths or C_INCLUDE_PATH. So I think you do have control over what is included. But I know almost nohting about all the compiling/linking stuff,

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Janosch Peters
On 2010-06-25 16:58:47 +0200, Michael Wild said: However, I think it's really difficult to guarantee consistency. If the code to be compiled contains stuff like the following #ifdef __APPLE__ #include #else #include #endif the compiler will compile against the latest framework installation i

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Janosch Peters
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

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Janosch Peters
On 2010-06-25 15:45:37 +0200, Michael Hertling said: On 06/25/2010 03:17 PM, Janosch Peters wrote: On 2010-06-21 07:01:36 +0200, Michael Hertling said: 8d87d12 What's that? Leet speak? No, these are the first seven and sufficiently unambiguous digits of the SHA-1 sum of the comm

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Janosch Peters
On 2010-06-21 07:01:36 +0200, Michael Hertling said: 8d87d12 What's that? Leet speak? -- Janosch ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages o

Re: [CMake] Various problems deploying a python module

2010-06-19 Thread Janosch Peters
On 2010-06-18 08:29:25 +0200, Michael Hertling said: On 06/17/2010 04:23 PM, Janosch Peters wrote: I have two python frameworks on my mac: Python2.5 which comes with OS X, and python2.6 from macports. If I just use FIND_PACKAGE(PythonInterp) and FIND_PACKAGE(PythonLibs) I end up getting the

Re: [CMake] Various problems deploying a python module

2010-06-17 Thread Janosch Peters
On 2010-06-17 16:23:09 +0200, Janosch Peters said: 3. Copy python files during installation The python module needs some python files along with the compiled C module. Currently, I just copy all the stuff using cmakes file() command. That means, all files are created when the user types in

[CMake] Various problems deploying a python module

2010-06-17 Thread Janosch Peters
Hi list, I try to write a cmake script for a python module. Its finally working now, but the solution I came up with is not very nice. 1. Finding the correct python environment: I have two python frameworks on my mac: Python2.5 which comes with OS X, and python2.6 from macports. If I just u