[Cython] [cython-users] Cython .pxd introspection: listing defined constants

W. Trevor King wking at drexel.edu
Mon Feb 21 01:09:37 CET 2011

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20110220/c78897c6/attachment.pgp>

More information about the cython-devel mailing list