cimport from different packages [Pyrex]

G

George Sakkis

Does cimport work for importing from different packages in Pyrex ?
Here's a minimal example:

# in ./foo/bar.pxd
cdef class Bar:
cdef int i

# in ./foo/bar.pyx
cdef class Bar:
def __init__(self, i):
self.i = i

# in ./tmp.pyx
cimport foo.bar

$ pyrexc foo/bar.pyx
$ pyrexc tmp.pyx
tmp.pyx:1:8: 'foo.bar.pxd' not found


I tried every reasonable choice for '-I' dir, without success. Am I
missing something or it's just cimport's deficiency ?

George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,237
Latest member
AvivMNS

Latest Threads

Top