Thank Sandro, your solution works.<br><br>I am sorry to disturb you with a problem fixed in svn, I do have searched and found nothing before asking.<br><br clear="all"> Changsheng Jiang<br>
<br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 02:55, Sandro Tosi <span dir="ltr"><<a href="mailto:morph@debian.org">morph@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Changsheng,<br>
<div><div></div><div class="h5"><br>
On Mon, Jul 19, 2010 at 04:58, Changsheng Jiang <<a href="mailto:jiangzuoyan@gmail.com">jiangzuoyan@gmail.com</a>> wrote:<br>
> Hi team,<br>
><br>
> I have installed python-numpy=1:1.4.1-2 on debian/sid, and builded a private<br>
> python extension module based on numpy failed, and report<br>
> NPY_ABI_VERSION is not defined by compiler. I grep-ed all files, only found<br>
> it in a setup.py. Then it's not possbile to build that private extesion<br>
> module.<br>
><br>
> I have installed the private module successfully in gentoo system, and note<br>
> that there is a _numpyconfig.h file, which defined NPY_ABI_VERSION.<br>
<br>
</div></div>The file _numpyconfig.h is shipped in the package but in a location<br>
(/usr/lib/pyshared/python*/numpy/core/include/numpy/_numpyconfig.h)<br>
not referenced in /usr/include/python*/numpy/ , so it's not found and<br>
the extension fails to build.<br>
<br>
We have just fixed that problem in the SVN repository for the package,<br>
and it will soon be made available (we have to fix other problem,<br>
let's see how long they take), so if you want to "workaround" it, you<br>
can change /usr/include/python*/numpy/ symlinks to point to<br>
/usr/lib/pymodules/python*/numpy/core/include/numpy/ (2.6 -> 2.6 and<br>
2.5 -> 2.5), that's exactly what we have done in the package.<br>
<br>
Regards,<br>
<font color="#888888">--<br>
Sandro Tosi (aka morph, morpheus, matrixhasu)<br>
My website: <a href="http://matrixhasu.altervista.org/" target="_blank">http://matrixhasu.altervista.org/</a><br>
Me at Debian: <a href="http://wiki.debian.org/SandroTosi" target="_blank">http://wiki.debian.org/SandroTosi</a><br>
</font></blockquote></div><br>