Extending Python with C++ no SWIG
<p>OK so I have a C++ function with a header like this:</p>

<pre><code>int myfunc(vector&lt;int&gt; a, vector&lt;mystruct&gt; b, vector&lt;int&gt; c)
</code></pre>

<p>I have written the wrapper code (using Python.h as I have done many times with C, which translates the Python data types into the vector datatypes and structs I use in my program). The problem is I don't know how to tell setup.py to compile it with g++, I get a bunch of errors when I run</p>

<pre><code>setup.py build -i
</code></pre>

<p>My setup.py:</p>

<pre><code>from distutils.core import setup, Extension

setup(name="MyModule", version="1.0",
  ext_modules=[Extension("MyModule", ["myfunc.cpp"])])
</code></pre>

<p>Can anyone tell me how I can make the build process use g++ a not gcc</p>
