[Numpy-discussion] C extension compiling question

Robert Kern robert.kern@gmail....
Fri Oct 29 09:28:45 CDT 2010


On Fri, Oct 29, 2010 at 08:45, Henry Gomersall <whg21@cam.ac.uk> wrote:
> On Fri, 2010-10-29 at 15:33 +0200, Jon Wright wrote:
>>
>> You need to call import_array() in initspam. See:
>> http://docs.scipy.org/doc/numpy-1.5.x/user/c-info.how-to-extend.html
>
> Thanks, that solves it.
>
> It would be really useful to have a complete example somewhere. As in, a
> set of files for a minimum example that builds and runs.

http://github.com/numpy/numpy/tree/master/doc/newdtype_example/

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the NumPy-Discussion mailing list