cython/cython — pull request #91 by bfroehle (2012-02-24 20:57:36+00:00)
Title: Search for pxd files in sys.path.

As recently discussed on the mailing list, there seems to be a consensus that we should search for `pxd` files in python's `sys.path`.

I've implemented this basic feature in the simplest way possible --- by having `Context.find_pxd_file` search first in `self.include_directories` and then in `sys.path`.

This would close http://trac.cython.org/cython_trac/ticket/761, as `PYTHONPATH` is automatically added to `sys.path`.

I've done some limited testing and haven't ran into any issues yet. `setup.py` files which use `Cython.Distutils.build_ext` and `Cython.Build.cythonize` both are able to compile pyx files which refer to globally installed pxd's.

Thoughts?