[CMake] Finding Python Modules with CMake

2011-01-03 Thread Todd Gamblin
Is there a way in CMake, once I find the python interpreter, to query for the availability of a particular module? e.g. say I want to make sure that the host's python installation has PyQt4, or numy, or something like that. Do I have to manually run the interpreter, try to import it, and check

Re: [CMake] Finding Python Modules with CMake

2011-01-03 Thread Michael Wild
On 01/03/2011 09:17 AM, Todd Gamblin wrote: > Is there a way in CMake, once I find the python interpreter, to query for the > availability of a particular module? e.g. say I want to make sure that the > host's python installation has PyQt4, or numy, or something like that. Do I > have to manua

Re: [CMake] Finding Python Modules with CMake

2011-01-03 Thread Mark Moll
On Jan 3, 2011, at 2:17 AM, Todd Gamblin wrote: > Is there a way in CMake, once I find the python interpreter, to query for the > availability of a particular module? e.g. say I want to make sure that the > host's python installation has PyQt4, or numy, or something like that. Do I > have to