Cross-platform method for finding python include folder
<p>I have python extension code that I need to cross-platform compile, and to do so, I need to be able to find the python include folder.  On Linux and Mac OSX, I can do <code>python-config --include</code> and it gives me something like <code>-I/Library/Frameworks/Python.framework/Versions/6.3/include/python2.6</code>.  This is fine and dandy, except that my Windows python distro doesn't have <code>python-config</code>.  Is there an easy way, through python code, of finding where it thinks the include folder is?  For <code>numpy</code>, this snippet does the job: </p>

<pre><code>try:
    numpy_include = numpy.get_include()
except AttributeError:
    numpy_include = numpy.get_numpy_include()
</code></pre>

<p>Is there an analogous method for the python include folder?</p>
