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 <<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>> 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 <<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>> wrote:<br>
> Hi,<br>><br>> currently, paraview in our svn doesn't build against python (but the<br>> package builds just fine, even in pbuilder). To enable python, apply<br>> this patch:<br>><br>> $ svn di<br>
> Index: debian/control<br>> ===================================================================<br>> --- debian/control (revision 2140)<br>> +++ debian/control (working copy)<br>> @@ -3,7 +3,7 @@<br>
> Priority: extra<br>> Maintainer: Debian Scientific Computing Team<br>> <<a href="mailto:pkg-scicomp-devel@lists.alioth.debian.org">pkg-scicomp-devel@lists.alioth.debian.org</a>><br>> Uploaders: Christophe Prud'homme <<a href="mailto:prudhomm@debian.org">prudhomm@debian.org</a>>, Ondrej Certik<br>
> <<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>><br>> -Build-Depends: cdbs (>= 0.4.51), debhelper (>= 5), autotools-dev,<br>> quilt (>= 0.46-4), cmake (>= 2.4.8-1), libqt4-dev (>= 4.3.3-2),<br>
> libopenmpi-dev, python2.5, ffmpeg, libavformat-dev, libavutil-dev,<br>> libavcodec-dev<br>> +Build-Depends: cdbs (>= 0.4.51), debhelper (>= 5), autotools-dev,<br>> quilt (>= 0.46-4), cmake (>= 2.4.8-1), libqt4-dev (>= 4.3.3-2),<br>
> libopenmpi-dev, python2.5, ffmpeg, libavformat-dev, libavutil-dev,<br>> libavcodec-dev, python2.5-dev<br>> Standards-Version: 3.7.3<br>> XS-DM-Upload-Allowed: yes<br>> Homepage: <a href="http://www.paraview.org/" target="_blank">http://www.paraview.org/</a><br>
> Index: debian/rules<br>> ===================================================================<br>> --- debian/rules (revision 2140)<br>> +++ debian/rules (working copy)<br>> @@ -21,7 +21,7 @@<br>
> -DBUILD_TESTING=OFF \<br>> -DVTK_USE_FFMPEG_ENCODER=ON \<br>> -DPARAVIEW_USE_MPI=ON \<br>> - -DPARAVIEW_ENABLE_PYTHON=OFF \<br>> + -DPARAVIEW_ENABLE_PYTHON=ON \<br>
> -DCMAKE_VERBOSE_MAKEFILE=ON \<br>> -DCMAKE_C_FLAGS="-O2" \<br>> -DCMAKE_CXX_FLAGS="-O2" \<br>><br>><br>><br>> However, the compilation in pbuilder then stops at:<br>
><br>> [...]<br>> cd /tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu/Utilities/VTKPythonWrapping<br>> && /usr/bin/cc -O2 -fPIC<br>> "CMakeFiles/vtkWrapPythonInit.dir/__/__/__/VTK/Wrapping/vtkWrapPythonInit.o"<br>
> -o ../../bin/vtkWrapPythonInit -rdynamic<br>> /usr/bin/cmake -E cmake_progress_report<br>> /tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu/CMakeFiles<br>> [ 19%] Generating paraview/pv_compile_complete<br>
> cd /tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu/Utilities/VTKPythonWrapping/paraview<br>> && compile_all_pv.py<br>> /bin/sh: compile_all_pv.py: command not found<br>> make[3]: *** [Utilities/VTKPythonWrapping/paraview/pv_compile_complete]<br>
> Error 127<br>> make[3]: Leaving directory `/tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu'<br>> make[2]: *** [Utilities/VTKPythonWrapping/CMakeFiles/paraview_pyc.dir/all]<br>> Error 2<br>> make[2]: *** Waiting for unfinished jobs....<br>
><br>><br>><br>> Which I don't know how to fix. Any ideas?<br><br><br></div></div>So the problem was that the line<br><div class="Ih2E3d"><br>> cd /tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu/Utilities/VTKPythonWrapping/paraview<br>
> && compile_all_pv.py<br><br></div>should be<br><div class="Ih2E3d"><br>> cd /tmp/buildd/paraview-3.2.1/obj-x86_64-linux-gnu/Utilities/VTKPythonWrapping/paraview<br></div>> && 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 2008-02-17<br>11:41:05.683559129 +0100<br>+++ ParaView3.2.1/Utilities/VTKPythonWrapping/CMakeLists.txt 2008-02-17<br>11:41:19.934559032 +0100<br>@@ -675,7 +675,7 @@<br>
ADD_CUSTOM_COMMAND(<br> WORKING_DIRECTORY ${PV_PYTHON_MODULE_BINARY_DIR}<br> COMMAND ${PYTHON_EXECUTABLE}<br>- ARGS compile_all_pv.py<br>+ ARGS python2.5 compile_all_pv.py<br> DEPENDS ${PV_PYTHON_SOURCE_FILES}<br>
${PV_PYTHON_MODULE_BINARY_DIR}/compile_all_pv.py<br> ${PV_PYTHON_OUTPUT_FILES}<br> OUTPUT "${PV_PYTHON_MODULE_BINARY_DIR}/pv_compile_complete"<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>