On Mon, Oct 1, 2012 at 4:43 AM, Christoph Groth wrote:
> Hello,
>
> I believe that relative cimports would be useful in Cython. (For a
> motivation, see my recent posting on cython-user
> http://thread.gmane.org/gmane.comp.python.cython.user/7401)
>
> So I tried to assess how much work it would b
Christoph Groth wrote:
kwant/_system.pyx:8:0: 'graph.defs.pxd' not found
That part *is* related to Pyrex -- it's a holdover from
the old method of dealing with .pyx files in packages.
It doesn't have anything to do with relative imports,
though.
--
Greg
___
Christoph Groth wrote:
in Cython/Compiler/Parsing.py I find code that emits "Relative cimport
is not supported yet".
Is this related to the behavior of Pyrex?
There's no such code in Pyrex's Parsing.py, and if I try to
compile this with Pyrex:
from .bar.stuff cimport thing
I get
/U
Oh, something I forgot:
in Cython/Compiler/Parsing.py I find code that emits "Relative cimport
is not supported yet". However, when I try to compile code which
includes a relative cimport, I do not get this error, but instead
from .graph.defs cimport gint
^
--
Hello,
I believe that relative cimports would be useful in Cython. (For a
motivation, see my recent posting on cython-user
http://thread.gmane.org/gmane.comp.python.cython.user/7401)
So I tried to assess how much work it would be to implement that
feature, but that's a tough job as I do not have