title: PY2EXE: How to output "*_D.PYD" file (debug) and use MSVCR80D.DLL?
body: <p>The debug configuration of my app is built against:</p>
  
  <pre><code>  PYTHON25_D.DLL
    MSVCR80D.DLL
  </code></pre>
  
  <p>We use Python .PYD files in our application. Some of these .PYD are .PY converted by PY2EXE to .PYD.</p>
  
  <p>When I run PY2EXE on MYSCRIPT.PY, I get the following .PYD and dependencies:</p>
  
  <pre><code>MYSCRIPT.PYD
    PYTHON25.DLL
    MSVCR71.DLL
    KERNEL32.DLL  
  </code></pre>
  
  <p>What I <em>want</em> is the debug version, built against the same C runtime library my app uses (MSVCR80D.DLL). </p>
  
  <p>How can I convert MYSCRIPT.PY into:</p>
  
  <pre><code>MYSCRIPT_D.PYD                 &lt;-- debug version of .PYD end with "_D"
    PYTHON25_D.DLL               &lt;-- debug version of Python
    MSVCR80D.DLL                 &lt;-- ver 8.0, Debug
    KERNEL32.DLL
  </code></pre>
  
  <p>How can this be done?</p>