On Tue, Feb 23, 2010 at 8:42 AM, T J <[email protected]> wrote:
> Hi,
>
> I have numpy installed system-wide, but I also have my own (svn)
> version in ~/.local.  When I compile cython modules which make use of
> the NumPy array access, it needs to reference the NumPy include files.
>  These are located here:
>
>   ~/.local/lib/python2.6/site-packages/numpy/core/include/numpy/
>
> The "problem" I am having is that when I compile the cython extension,
> it is using libraries located here:
>
>  /usr/include/python2.6/numpy

In addition to what Robert said, note that the above is a downstream
modification. By putting headers in /usr/include instead of
$site-packages/numpy, the system-wide numpy headers are included
whenever the Python.h is, which is often before the numpy headers (the
ones we want).

This problem is aggravated by the fact that there is no easy way to
control header path inclusion in distutils: paths are added through
add_include_dirs (which *append* paths), but the default should
actually be prepending. Maybe we should change this internally in
numpy.distutils, but I am a bit worried about the consequences,

cheers,

David
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to