Not sure if you've done this already David, but there are two files in paraview that will need updating:<br><br>CoProcessing/CoProcessor/CMakeLists.txt:SET(PYTHON_MODULE_PREFIX ${CMAKE_SHARED_LIBRARY_PREFIX})<br>Utilities/VTKPythonWrapping/Executable/CMakeLists.txt: SET(PYTHON_MODULE_PREFIX "lib")<br>
<br>PYTHON_MODULE_PREFIX can be left undefined, or set to the empty string. It is used by FindPythonLibs.cmake to create "init[prefix][modulename]()" references.<br><br>Pat<br><br><div class="gmail_quote">On Fri, Sep 24, 2010 at 9:40 AM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote"><div class="im">On Fri, Sep 24, 2010 at 9:34 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi All,<br>
<br>
I've made the bold move of removing the "lib" prefix from the python<br>
modules when they are built in unix-like environments. So "if <a href="http://os.name" target="_blank">os.name</a><br>
== 'posix':" in all the .py files that load the modules is no longer<br>
necessary.<br></blockquote><div><br></div></div><div>I think this is a great change, and it was on my todo list. </div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
In order to minimize the breakage in external packages, I create<br>
symlinks in the bin directory:<br>
libvtkCommonPython.so -> vtkCommonPython.so<br>
<br>
This means that ParaView will not break (I've tested it) and hopefully<br>
other packages won't break, either. However, I'd recommend that all<br>
external packages switch their .py files and cmake files over to the<br>
new prefix-less style.<br>
<br>
</blockquote></div></div>I will take care of that in Titan. Thanks for pushing this in, I never liked the if/else logic necessary just to load a Python module.<div><br></div><font color="#888888"><div>Marcus</div>
</font><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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br>