[Cython] cython-0.11.rc: Updated tar, test fails (but gets further)

Stefan Behnel stefan_ml at behnel.de
Tue Mar 10 15:53:38 CET 2009


Dag Sverre Seljebotn wrote:
> Lisandro Dalcin wrote:
>> Dag, from very long time (as far as I can remember), numpy provided a
>> canonical way to get the include files
>>
>> import numpy
>> numpy_include = numpy.get_include()
>>
>> I remember some mails in this list where (Stefan or you?) resisted on
>> automating this... But this has worked even before 1.0.X numpy
>> released...
>>
>> IMHO, this should be automated ...
>>
> I'll resist again, but I don't have a strong opinion, so if you can
> persuade Stefan and provide a patch I'm ok with it.
>
> a) One could add it to runtests.py. But that is primarily a tool for
> development, and the most important thing is that things are nice and
> explicit and that nothing magic happens under the hood. It's not
> supposed to "just work", rather the opposite! :-)

I'm fine with using it in runtest.py. We test for NumPy anyway when
setting up the test suite, so we can just as well go all the way.
Requiring a user to set up a specific build environment just to run the
test suite is wrong.

I'm against adding any special handling to the distutils modules, though.
Having NumPy installed doesn't imply that you want to use its header
files.

Stefan



More information about the Cython-dev mailing list