<div dir="ltr">Hello Andrés,<br><div style="margin-left:40px">at this moment I&#39;m not sure if there is a cleaner approach to search the availability of a python module, but one possible solution is &quot;ask to the system python interpreter if the module exists and where it is&quot;.<br></div><div style="margin-left:40px">In order to do that you can use <font face="monospace,monospace">execute_process</font> to call python interpreter (you can locate it via <code>FindPythonInterp</code>) and pass a script to it.<br><br></div><div style="margin-left:40px">Two examples of finding python modules can be found in [1] and [2].<br><br></div>Regards,<br><div style="margin-left:40px">Roberto<br></div><br>[1] <a href="http://www.cmake.org/pipermail/cmake/2011-January/041666.html">http://www.cmake.org/pipermail/cmake/2011-January/041666.html</a><br>[2] <a href="http://www.cmake.org/pipermail/cmake/2010-June/037468.html">http://www.cmake.org/pipermail/cmake/2010-June/037468.html</a><br><div><div><div><div style="margin-left:40px"><br></div><div style="margin-left:40px"><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-27 8:09 GMT+02:00 Andrés J Hernández Escobar <span dir="ltr">&lt;<a href="mailto:andresjhe@gmail.com" target="_blank">andresjhe@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello!<div><br></div><div>I&#39;m trying add my component to JdeRobot and I&#39;m having some issues.</div><div><br></div><div>My component&#39;s dependency is matplotlib, which is a module of python and my component is just a .py file. </div><div><br></div><div>What I think I have to do is to add a new dependency to the /Deps folder called matplotlib and there insert a CMakeLists. I don&#39;t know exacly how to search for the matplotlib module in Cmake&#39;s &quot;language&quot;</div><div><br></div><div>Another question I have is where are the python ice&#39;s slices stored when &quot;make install&quot; the JdeRobot installation? </div><div><br></div><div>Thank you</div></div>
<br>_______________________________________________<br>
Jde-developers mailing list<br>
<a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
<a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
<br></blockquote></div><br></div>