twiecki/CythonGSL — Issue #1: Figure out correct installing and importing
Author: twiecki
Created: 2012-01-31 00:08:45+00:00
State: open

From a recent Cython discussion with Robert Kern:

"https://github.com/twiecki/CythonGSL/blob/master/examples/integrate.pyx#L1

That's the wrong "from cython_gsl import gsl", not the correct "from cython_gsl cimport gsl".

I would love to help, but there are lots of other things that are broken in the CythonGSL repo at the moment (.pxd files aren't installed; you include "math.pxi" but provide the file "math.pxd"). I suggest starting much, much smaller and working out the details before doing the whole GSL.

I will note that I was wrong earlier to suggest that installing a package with the .pxd files will just work. Cython has its own include path separate from the PYTHONPATH. I don't know the best way to distribute .pxd files in this case."