title: How to use MinGW's gcc compiler when installing Python package using Pip?
body: <p>I configured MinGW and distutils so now I can compile extensions using this command:</p>
  
  <pre><code>setup.py install
  </code></pre>
  
  <p>MinGW's gcc compiler will be used and package will be installed. For that I installed MinGW and <a href="https://docs.python.org/2/install/#location-and-names-of-config-files" rel="noreferrer">created distutils.cfg</a> file with following content:</p>
  
  <pre><code>[build]
  compiler = mingw32
  </code></pre>
  
  <p>It's cool but now I'd like to use all pip benefits. Is there a way to use the same MinGW's gcc compiler in pip? So that when I run this:</p>
  
  <pre><code>pip install &lt;package name&gt;
  </code></pre>
  
  <p>pip will use MinGW's gcc compiler and compile C code if needed?</p>
  
  <p>Currently I get this error: <code>Unable to find vcvarsall.bat</code>. Seems pip doesn't know that I have gcc compiler. How can I configure pip to use gcc compiler?</p>