PyMOTW: sysconfig – Interpreter Compile-time Configuration

In Python 2.7 sysconfig has been extracted from distutils to become a stand-alone module. It includes functions for determining the settings used to compile and install the current interpreter.

Read more at pymotw.com: sysconfig