[Cython] PATCH: new refnanny API

Dag Sverre Seljebotn dagss at student.matnat.uio.no
Tue Feb 3 14:33:44 CET 2009


Lisandro Dalcin wrote:
>
> Perhaps betther would be to put iside Cython.Runtime, in such a way
> that the full dotted name would be 'Cython.Runtime.refnanny' ?? I'm
> not a big fan of populating site-packages directory. Perhaps if the
> module is renamed to 'pyxrefnanny'?
>   
If your code could be modified to first check for just "refnanny", and 
if that is not found, then attempt Cython.Runtime.refnanny?

This would allow runtests.py to compile refnanny outside of the package 
(which may be changed relative to an installed version), while falling 
back to the one in the package otherwise.

An alternative is to have a new toplevel package cythonruntime or 
cython_runtime. The point is that runtests.py must be able to load it 
into sys.path together with the code in the current directory 
(preferably without having to copy the whole Cython tree).

I tried doing this but it didn't work immediately so I'm giving up. Feel 
free :-)

Dag Sverre


More information about the Cython-dev mailing list