On Mon, Feb 21, 2011 at 10:09:42AM +1300, Greg Ewing wrote: > W. Trevor King wrote: > > Hmm, that means that > > > > cimport numpy > > a = numpy.numpy.ndarray > > > > also compiles. > > Compiles and runs, or just compiles?
You're right. Cython compilation worked, but it didn't run: $ export CFLAGS="-I/usr/lib/python2.6/site-packages/numpy/core/include/" $ python -c 'import pyximport; pyximport.install(); import np;' Traceback (most recent call last): ... File "np.pyx", line 3, in init np (/.../np.c:2846) a = numpy.numpy.ndarray ImportError: Building module failed: ['NameError: numpy\n'] Sorry for muddying the waters with that claim. -- This email may be signed or encrypted with GPG (http://www.gnupg.org). The GPG signature (if present) will be attached as 'signature.asc'. For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy My public key is at http://www.physics.drexel.edu/~wking/pubkey.txt
pgpl7psMqItPR.pgp
Description: PGP signature
_______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel