Re: [cmake-developers] New module to verify that python libraries are available on the system

2016-05-04 Thread Francois Budin
Indeed. Here is the corrected patch. Thanks for the review, Francois On Tue, May 3, 2016 at 6:46 PM, Florent Castelli wrote: > "exec(\"import sys\\ntry:\\n import numpy\\nexcept:\\n > sys.exit(0)\\nsys.exit(1)\")" > > This seems to be great to check that numpy exists! You're probably missing

Re: [cmake-developers] New module to verify that python libraries are available on the system

2016-05-03 Thread Florent Castelli
"exec(\"import sys\\ntry:\\n import numpy\\nexcept:\\n sys.exit(0)\\nsys.exit(1)\")" This seems to be great to check that numpy exists! You're probably missing a variable somewhere ;) /Florent On 03/05/2016 20:37, Francois Budin wrote: Hello everyone, I wrote a short macro for one projec

[cmake-developers] New module to verify that python libraries are available on the system

2016-05-03 Thread Francois Budin
Hello everyone, I wrote a short macro for one project I work on to verify at configuration time that a python library is available on the system on which the project is configured. I have attached a patch to potentially integrate this new macro to CMake. I saw other people doing similar things in