<div class="gmail_quote">On Wed, May 2, 2012 at 1:19 PM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The &quot;D&quot; stands for .dylib, which is the shared library suffix on OS X.<br>
<br>
Originally, the python modules had a &quot;.dll&quot; suffix on Windows and<br>
a &quot;.so&quot; suffix on Linux.  This meant that python modules were really<br>
just shared libraries with a special python &quot;init&quot; function.  As far as<br>
the linker was concerned, there was no difference between a python<br>
module and a shared library.<br>
<br>
With OS X, shared libraries end in &quot;.dylib&quot; and python modules end<br>
in &quot;.so&quot;, so it was no longer possible to have the python modules<br>
act as both modules, and as link libraries.  This distinction was also<br>
recognized by cmake (though I forget in what version).  Also, on<br>
Windows, python started to require that python modules end in &quot;.pyd&quot;<br>
as of python 2.5.<br></blockquote><div><br></div><div>Very nice explanation! thanks for writing this. </div><div><br></div><div>Thanks, </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
To support OS X (and later Windows), it was necessary to break the<br>
python wrappers into two parts: one part that is a shared library (the<br>
&quot;D&quot; part, which is a .dylib on OS X, hence the &quot;D&quot;), and another part<br>
that is a python module.<br>
<span class="HOEnZb"><font color="#888888"><br>
 - David<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, May 2, 2012 at 11:00 AM, Pat Marion &lt;<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>&gt; wrote:<br>
&gt; I think the &#39;D&#39; must stand for Dependency.  It is a bit confusing, because a<br>
&gt; D at the end of library name usually means Debug.<br>
&gt;<br>
&gt; Pat<br>
&gt;<br>
&gt;<br>
&gt; On Wed, May 2, 2012 at 9:31 AM, Jean-Christophe Fillion-Robin<br>
&gt; &lt;<a href="mailto:jchris.fillionr@kitware.com">jchris.fillionr@kitware.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; FYI - The oldest commit I found referencing &quot;PythonD&quot; is the following one<br>
&gt;&gt; [1], it explains why there is a separation into a Python and PythonD<br>
&gt;&gt; library.<br>
&gt;&gt;<br>
&gt;&gt; Hth<br>
&gt;&gt; Jc<br>
&gt;&gt;<br>
&gt;&gt; [1] <a href="http://vtk.org/gitweb?p=VTK.git;a=commit;h=56ca4f8198" target="_blank">http://vtk.org/gitweb?p=VTK.git;a=commit;h=56ca4f8198</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, May 2, 2012 at 9:21 AM, Pat Marion &lt;<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi Andrew,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; For each python module there should be two libraries:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; libvtkCommonCorePythonD.so<br>
&gt;&gt;&gt; vtkCommonCorePython.so<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The second library is the python c extension module (and it&#39;s probably in<br>
&gt;&gt;&gt; a different output directory.)  I forget was the &#39;D&#39; stands for, but it<br>
&gt;&gt;&gt; doesn&#39;t mean debug.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Pat<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Tue, May 1, 2012 at 11:30 PM, Andrew Maclean<br>
&gt;&gt;&gt; &lt;<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi Marcus,<br>
&gt;&gt;&gt;&gt;    Sorry the last message was garbled.<br>
&gt;&gt;&gt;&gt; I was reviewing the dlls in the windows build of VTK 6.0 and noticed<br>
&gt;&gt;&gt;&gt; that all the python dlls have a D suffix in the release build,<br>
&gt;&gt;&gt;&gt; e.g vtkAMRCorePythonD-6.0.dll, similarly on Linux e.g<br>
&gt;&gt;&gt;&gt; vtkAMRCorePythonD *.so*<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I did a quick scan through the CMakeLists.txt files but I can&#39;t see<br>
&gt;&gt;&gt;&gt; where D suffix is being added for the release versions.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Is it intentional that these files all have the D suffix for release<br>
&gt;&gt;&gt;&gt; versions?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Regards<br>
&gt;&gt;&gt;&gt;    Andrew<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; ___________________________________________<br>
&gt;&gt;&gt;&gt; Andrew J. P. Maclean<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ___________________________________________<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; <a href="tel:%2B1%20919%20869%208849" value="+19198698849">+1 919 869 8849</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
&gt;<br>
&gt;<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&amp;D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com">www.kitware.com</a>    <br>