Ticket #7 (closed defect: worksforme)

Opened 6 years ago

Last modified 6 years ago

Problems with automatic pxd inclusion

Reported by: robertwb Owned by: somebody
Priority: major Milestone: 0.10
Component: Build System Keywords:
Cc:

Description

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: [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. :-)

Change History

Changed 6 years ago by robertwb

Stefan Behnel wrote on 2008-05-01:

Have you tried

    cython package/package.module.pyx

and naming the .pxd alike?

Changed 6 years ago by robertwb

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: [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)

Changed 6 years ago by robertwb

  • owner changed from robertwb to somebody

Changed 6 years ago by robertwb

  • milestone set to 0.9.8.2

Changed 6 years ago by robertwb

This works for me. Perhaps there is a missing init.py?

Changed 6 years ago by robertwb

  • status changed from new to closed
  • resolution set to worksforme

Short more details, I don't think we can debug this.

Note: See TracTickets for help on using tickets.