Speaking of the existing FindPython* scripts they do not support v3.0 yet.  Is there a need to maintain support for picking 2.x if two versions of python are installed?<br><br><div class="gmail_quote">On Wed, Aug 19, 2009 at 4:15 AM, Marcel Loose <span dir="ltr">&lt;<a href="mailto:loose@astron.nl">loose@astron.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ah thanks,<br>
<br>
I didn&#39;t know that byte code is incompatible between Python releases.<br>
That&#39;s definitely a pitfall ;-). I agree that, in that case, it&#39;s better<br>
to let the installer handle byte compilation. So, in short, I can do<br>
with the existing FindPython* scripts, I guess?<br>
<br>
Thanks for your prompt reply.<br>
<br>
Best regards,<br>
<font color="#888888">Marcel Loose.<br>
</font><div><div></div><div class="h5"><br>
On Wed, 2009-08-19 at 10:02 +0200, Hendrik Sattler wrote:<br>
&gt; Zitat von Marcel Loose &lt;<a href="mailto:loose@astron.nl">loose@astron.nl</a>&gt;:<br>
&gt; &gt; Would it be worthwhile to add Python as a valid language to the<br>
&gt; &gt; project() method? Or is it better to use the currently available<br>
&gt; &gt; FindPython-like scripts.<br>
&gt; &gt;<br>
&gt; &gt; My reason for asking is that oftentimes you&#39;d like to byte-compile<br>
&gt; &gt; Python source and install these byte-compiled files along with the<br>
&gt; &gt; Python sources. If Python were a fully supported programming language,<br>
&gt; &gt; then you could write the CMakeLists.txt files more or less the same way<br>
&gt; &gt; as for other languages (e.g., like Java).<br>
&gt; &gt;<br>
&gt; &gt; It&#39;s just a thought, and maybe I&#39;m overlooking all kinds of potential<br>
&gt; &gt; pitfalls.<br>
&gt;<br>
&gt; Citing from <a href="http://effbot.org/zone/python-compile.htm" target="_blank">http://effbot.org/zone/python-compile.htm</a>:<br>
&gt; Python?s byte code is portable between platforms, but not necessarily<br>
&gt; between Python releases.<br>
&gt;<br>
&gt; Unless your python module is for only one specific version or you know<br>
&gt; the python interpreter version on all installation targets, you better<br>
&gt; leave it up to the installer to compile the module (the page shows<br>
&gt; trivial code in python to do this).<br>
&gt;<br>
&gt; Something different would be to get complete application binaries.<br>
&gt; However, that somehow defeats one purpose of using Python.<br>
&gt;<br>
&gt; HS<br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Philip Lowman<br>