robertwb / issues-import-test

0 stars 0 forks source link

Problems with automatic pxd inclusion #33

Closed robertwb closed 8 years ago

robertwb commented 8 years ago

Reported by robertwb on 6 May 2008 00:19 UTC Joost Cassee wrote:

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: [2](Errno) No such file or directory: '/home/user/src/package.module.pyx'

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

Migrated-From: http://trac.cython.org/ticket/7

robertwb commented 8 years ago

Comment by robertwb on 6 May 2008 00:19 UTC Stefan Behnel wrote on 2008-05-01:

Have you tried

    cython package/package.module.pyx

and naming the .pxd alike?
robertwb commented 8 years ago

Comment by robertwb on 6 May 2008 00:20 UTC Joost Cassee wrote on 2008-05-01:

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: [2](Errno) 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)
robertwb commented 8 years ago

Modified by robertwb on 6 May 2008 00:23 UTC

robertwb commented 8 years ago

Modified by robertwb on 19 Aug 2008 03:58 UTC

robertwb commented 8 years ago

Comment by robertwb on 30 Oct 2008 17:19 UTC This works for me. Perhaps there is a missing init.py?

robertwb commented 8 years ago

Comment by robertwb on 8 Nov 2008 22:36 UTC Short more details, I don't think we can debug this.