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

Francois Budin francois.budin at kitware.com
Wed May 4 08:39:23 EDT 2016


Indeed. Here is the corrected patch.
Thanks for the review,

Francois

On Tue, May 3, 2016 at 6:46 PM, Florent Castelli <florent.castelli at gmail.com
> 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
> a variable somewhere ;)
>
> /Florent
>
>
> On 03/05/2016 20:37, Francois Budin wrote:
>
> 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 other projects,
> so it might be of interest to the community.
> Hope this helps,
>
> Francois
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160504/7e6bfc9c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ENH-Module-to-check-that-Python-libraries-are-availa.patch
Type: text/x-patch
Size: 3664 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160504/7e6bfc9c/attachment.bin>


More information about the cmake-developers mailing list