title: Python distutils, how to get a compiler that is going to be used?
body: <p>For example, I may use <code>python setup.py build --compiler=msvc</code> or <code>python setup.py build --compiler=mingw32</code> or just <code>python setup.py build</code>, in which case the default compiler (say, <code>bcpp</code>) will be used. How can I get the compiler name inside my setup.py (e. g. <code>msvc</code>, <code>mingw32</code> and <code>bcpp</code>, respectively)?</p>
  
  <p>UPD.: I don't need the default compiler, I need the one that is <strong>actually</strong> going to be used, which is not necessarily the default one. So far I haven't found a better way than to parse <code>sys.argv</code> to see if there's a <code>--compiler...</code> string there.</p>