[Cython] Question on "numpy_common.pxi" in NumPy tests
stefan_ml at behnel.de
Thu Mar 29 11:25:57 CEST 2012
Robert Bradshaw, 29.03.2012 11:19:
>>> On 27 March 2012 17:20, Stefan Behnel wrote:
>>>> the NumPy related tests use a file "numpy_common.pxi" that contains this
>>>> useless code:
>>>> cdef extern from *:
>>>> bint FALSE "0"
>>>> void import_array()
>>>> void import_umath()
>>>> if FALSE:
> I see you disabled this in the release branch (resulting in the
> useless /numpy/core/include/numpy/__multiarray_api.h:1187: warning:
> ‘int _import_array()’ defined but not used). Was this intentional?
What's the alternative? It currently breaks the C++ tests - I think a
warning (in addition to those that are there already) is much better than
an entire test that fails to compile.
More information about the cython-devel