Ondrej<br><br>I believe(for the moment) that your change is not the right one<br>somehow the PYTHON_EXECUTABLE variable is not correctly defined (see one line above tour changes)<br><br>I now define it in the debian/rules and recompile paraview to check that it is fine.<br>
could you check that the change I just made in debian/rules? it seems that your computer is faster to compile than mine<br><br>C.<br><br><div class="gmail_quote">On Feb 17, 2008 12:15 PM, Ondrej Certik &lt;<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Feb 16, 2008 12:25 AM, Ondrej Certik &lt;<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>&gt; wrote:<br>
&gt; Hi,<br>&gt;<br>&gt; currently, paraview in our svn doesn&#39;t build against python (but the<br>&gt; package builds just fine, even in pbuilder). To enable python, apply<br>&gt; this patch:<br>&gt;<br>&gt; $ svn di<br>
&gt; Index: debian/control<br>&gt; ===================================================================<br>&gt; --- debian/control &nbsp; &nbsp; &nbsp;(revision 2140)<br>&gt; +++ debian/control &nbsp; &nbsp; &nbsp;(working copy)<br>&gt; @@ -3,7 +3,7 @@<br>
&gt; &nbsp;Priority: extra<br>&gt; &nbsp;Maintainer: Debian Scientific Computing Team<br>&gt; &lt;<a href="mailto:pkg-scicomp-devel@lists.alioth.debian.org">pkg-scicomp-devel@lists.alioth.debian.org</a>&gt;<br>&gt; &nbsp;Uploaders: Christophe Prud&#39;homme &lt;<a href="mailto:prudhomm@debian.org">prudhomm@debian.org</a>&gt;, Ondrej Certik<br>
&gt; &lt;<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>&gt;<br>&gt; -Build-Depends: cdbs (&gt;= 0.4.51), debhelper (&gt;= 5), autotools-dev,<br>&gt; quilt (&gt;= 0.46-4), cmake (&gt;= 2.4.8-1), libqt4-dev (&gt;= 4.3.3-2),<br>
&gt; libopenmpi-dev, python2.5, ffmpeg, libavformat-dev, libavutil-dev,<br>&gt; libavcodec-dev<br>&gt; +Build-Depends: cdbs (&gt;= 0.4.51), debhelper (&gt;= 5), autotools-dev,<br>&gt; quilt (&gt;= 0.46-4), cmake (&gt;= 2.4.8-1), libqt4-dev (&gt;= 4.3.3-2),<br>
&gt; libopenmpi-dev, python2.5, ffmpeg, libavformat-dev, libavutil-dev,<br>&gt; libavcodec-dev, python2.5-dev<br>&gt; &nbsp;Standards-Version: 3.7.3<br>&gt; &nbsp;XS-DM-Upload-Allowed: yes<br>&gt; &nbsp;Homepage: <a href="http://www.paraview.org/" target="_blank">http://www.paraview.org/</a><br>
&gt; Index: debian/rules<br>&gt; ===================================================================<br>&gt; --- debian/rules &nbsp; &nbsp; &nbsp; &nbsp;(revision 2140)<br>&gt; +++ debian/rules &nbsp; &nbsp; &nbsp; &nbsp;(working copy)<br>&gt; @@ -21,7 +21,7 @@<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DBUILD_TESTING=OFF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DVTK_USE_FFMPEG_ENCODER=ON &nbsp; &nbsp; &nbsp;\<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DPARAVIEW_USE_MPI=ON &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&gt; - &nbsp; &nbsp; &nbsp; &nbsp;-DPARAVIEW_ENABLE_PYTHON=OFF &nbsp; &nbsp; \<br>&gt; + &nbsp; &nbsp; &nbsp; &nbsp;-DPARAVIEW_ENABLE_PYTHON=ON &nbsp; &nbsp; &nbsp;\<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DCMAKE_VERBOSE_MAKEFILE=ON &nbsp; &nbsp; &nbsp;\<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DCMAKE_C_FLAGS=&quot;-O2&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DCMAKE_CXX_FLAGS=&quot;-O2&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&gt;<br>&gt;<br>&gt;<br>&gt; However, the compilation in pbuilder then stops at:<br>
&gt;<br>&gt; [...]<br>&gt; cd /tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu/Utilities/VTKPythonWrapping<br>&gt; &amp;&amp; /usr/bin/cc &nbsp; -O2 &nbsp;-fPIC<br>&gt; &quot;CMakeFiles/vtkWrapPythonInit.dir/__/__/__/VTK/Wrapping/vtkWrapPythonInit.o&quot;<br>
&gt; &nbsp; -o ../../bin/vtkWrapPythonInit -rdynamic<br>&gt; /usr/bin/cmake -E cmake_progress_report<br>&gt; /tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu/CMakeFiles<br>&gt; [ 19%] Generating paraview/pv_compile_complete<br>
&gt; cd /tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu/Utilities/VTKPythonWrapping/paraview<br>&gt; &amp;&amp; compile_all_pv.py<br>&gt; /bin/sh: compile_all_pv.py: command not found<br>&gt; make[3]: *** [Utilities/VTKPythonWrapping/paraview/pv_compile_complete]<br>
&gt; Error 127<br>&gt; make[3]: Leaving directory `/tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu&#39;<br>&gt; make[2]: *** [Utilities/VTKPythonWrapping/CMakeFiles/paraview_pyc.dir/all]<br>&gt; Error 2<br>&gt; make[2]: *** Waiting for unfinished jobs....<br>
&gt;<br>&gt;<br>&gt;<br>&gt; Which I don&#39;t know how to fix. Any ideas?<br><br><br></div></div>So the problem was that the line<br><div class="Ih2E3d"><br>&gt; cd /tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu/Utilities/VTKPythonWrapping/paraview<br>
&gt; &amp;&amp; compile_all_pv.py<br><br></div>should be<br><div class="Ih2E3d"><br>&gt; cd /tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu/Utilities/VTKPythonWrapping/paraview<br></div>&gt; &amp;&amp; python2.5 compile_all_pv.py<br>
<br>And this can be accomplished by this simple patch:<br><br>$ cat debian/patches/python.patch<br>Index: ParaView3.2.1/Utilities/VTKPythonWrapping/CMakeLists.txt<br>===================================================================<br>
--- ParaView3.2.1.orig/Utilities/VTKPythonWrapping/CMakeLists.txt &nbsp; &nbsp; &nbsp; 2008-02-17<br>11:41:05.683559129 +0100<br>+++ ParaView3.2.1/Utilities/VTKPythonWrapping/CMakeLists.txt &nbsp; &nbsp;2008-02-17<br>11:41:19.934559032 +0100<br>@@ -675,7 +675,7 @@<br>
 &nbsp; ADD_CUSTOM_COMMAND(<br> &nbsp; &nbsp; WORKING_DIRECTORY ${PV_PYTHON_MODULE_BINARY_DIR}<br> &nbsp; &nbsp; COMMAND ${PYTHON_EXECUTABLE}<br>- &nbsp; &nbsp;ARGS compile_all_pv.py<br>+ &nbsp; &nbsp;ARGS python2.5 compile_all_pv.py<br> &nbsp; &nbsp; DEPENDS ${PV_PYTHON_SOURCE_FILES}<br>
${PV_PYTHON_MODULE_BINARY_DIR}/compile_all_pv.py<br> &nbsp; &nbsp; ${PV_PYTHON_OUTPUT_FILES}<br> &nbsp; &nbsp; OUTPUT &quot;${PV_PYTHON_MODULE_BINARY_DIR}/pv_compile_complete&quot;<br><br><br><br>It is already applied in our svn repository, so all is fine now.<br>
<div><div></div><div class="Wj3C7c"><br>Ondrej<br><br>_______________________________________________<br>Pkg-scicomp-devel mailing list<br><a href="mailto:Pkg-scicomp-devel@lists.alioth.debian.org">Pkg-scicomp-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/pkg-scicomp-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/pkg-scicomp-devel</a><br></div></div></blockquote></div><br>