Problems with automatic pxd inclusion

Bug #225265 reported by Joost Cassee
2
Affects Status Importance Assigned to Milestone
Cython
New
Undecided
Unassigned

Bug Description

Cython (0.9.6.13.1) allow pyx files to be placed in the package directory. When I do so, the accompanying pxd file is not found. An strace of cython shows it uses the package directory twice in building the path:

~/src$ strace cython package/module.pyx
...
stat64("/home/user/src/package/package/module.pxd", 0xbf8b1f48) = -1 ENOENT (No such file or directory)
...

On the other hand, if I name the module as in python I get a cython error:

~/src$ cython package.module.pyx
...
IOError: [Errno 2] No such file or directory: '/home/user/src/package.module.pyx'

On the other hand, an strace shows that the pxd file was found. :-)

Revision history for this message
scoder (scoder) wrote : Re: [Bug 225265] [NEW] Problems with automatic pxd inclusion

Hi,

Joost Cassee wrote:
> Public bug reported:
>
> Cython (0.9.6.13.1) allow pyx files to be placed in the package
> directory. When I do so, the accompanying pxd file is not found. An
> strace of cython shows it uses the package directory twice in building
> the path:
>
> ~/src$ strace cython package/module.pyx
> ...
> stat64("/home/user/src/package/package/module.pxd", 0xbf8b1f48) = -1 ENOENT (No such file or directory)
> ...
>
> On the other hand, if I name the module as in python I get a cython
> error:
>
> ~/src$ cython package.module.pyx
> ...
> IOError: [Errno 2] No such file or directory: '/home/user/src/package.module.pyx'
>
> On the other hand, an strace shows that the pxd file was found. :-)

Have you tried

    cython package/package.module.pyx

and naming the .pxd alike?

Stefan

Revision history for this message
Joost Cassee (jcassee) wrote :

On 01-05-08 18:55, Stefan Behnel wrote:

> Have you tried
>
> cython package/package.module.pyx
>
> and naming the .pxd alike?

Hmm, I thought cython was changed to specifically allow
package/module.pyx naming? Anyway, I tried this but cython said

~/src$ cython package.module.pyx
...
IOError: [Errno 2] No such file or directory:
'/home/user/src/package.module.pyx'

~/src$ strace cython package/package.module.pyx
...
stat64("/home/user/src/package/package/package/module.pxd", 0xbf9a3828)
= -1 ENOENT (No such file or directory)

Regards,

Joost

--
Joost Cassee
http://joost.cassee.net

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.