title: Printing compiler and linker commands when building C Extension with distutils
body: <p>I'm trying to debug a setup.py file for a package that builds a C extension with </p>
  
  <pre><code>from distutils.core import Extension
  ext = Extension(...
  </code></pre>
  
  <p>I'd like to see what compiler / linker commands are actually getting executed.  How do I print them when running</p>
  
  <pre><code>pip install -e ./
  </code></pre>
  
  <p>or </p>
  
  <pre><code>python setup.py install
  </code></pre>