title: Making an executable in Cython
body: <p>Been playing with cython.  Normally program in Python, but used C in a previous life.
  I can't figure out how to make a free-standing executable.</p>
  
  <p>I've downloaded cython, and I can make a .pyx file (that's just a normal Python file with a .pyx extension), that executes in the Python shell, using:
  import pyximport; pyximport.install()</p>
  
  <p>I can generate a .c file at the command line with: cython file.pyx
  I can generate a .so file by building a standard setup.py and executing:</p>
  
  <pre><code>setup.py build_ext --inplace
  </code></pre>
  
  <p>I've tried making an executable out of the .so file using gcc with various options, but always have tons of missing files, headers, etc.  Have tried pointing to headers from virtually everywhere, but with no success, and am not really familiar with what all the gcc options do, or even if I should be using gcc.</p>
  
  <p>I've having a disconnect here with the fact that I can run my program in the Python shell, but not at the command line, (I don't want users to have to get into the shell, import modules, etc).</p>
  
  <p>What am I missing here?</p>