[Buildroot] [PATCH 4/5] package/python-numpy: disable numpy if fenv.h is not provided by libc

Arnout Vandecappelle arnout at mind.be
Sat Aug 3 14:12:29 UTC 2019



On 03/08/2019 14:49, Alexey Brodkin wrote:
> Hi Arnout,
> 
>> -----Original Message-----
>> From: Arnout Vandecappelle <arnout at mind.be>
>> Sent: Saturday, August 3, 2019 3:25 PM
>> To: Alexey Brodkin <abrodkin at synopsys.com>
>> Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>; Alexandre PAYEN
>> <alexandre.payen at smile.fr>; Damien DUVAL <damien.duval at smile.fr>; Evgeniy Didin <didin at synopsys.com>;
>> Fabrice Fontaine <fontaine.fabrice at gmail.com>; Romain Naour <romain.naour at smile.fr>;
>> buildroot at buildroot.org
>> Subject: Re: [Buildroot] [PATCH 4/5] package/python-numpy: disable numpy if fenv.h is not provided by
>> libc
>>
>>
>>
>> On 03/08/2019 12:48, Alexey Brodkin wrote:
>>> Hi Arnout,
>>>
>>>>  Since Alexey indicated that this is not needed any longer, I removed that part
>>>> and applied to master, thanks.
>>>>
>>>>  Alexey, could you do a runtime test (based on the one submitted by Romain) for
>>>> ARC to be sure? You'll need a qemu for ARC for that, obviously, which is why I'm
>>>> asking you instead of doing it myself :-)
>>>
>>> Any hint on why QEMU is in the question?
>>> I.e. is there any framework or test-suite that require QEMU?
>>
>>  Yes, the Buildroot runtime tests in support/testing use qemu.
> 
> That's cool, though I haven't tried that yet so may I ask what do I
> need to run for testing numpy in particular?

 Specifically for numpy, there is no runtime test yet - Romain submitted a patch
[1] but it needs a new iteration.

 But I realise now that in your case the runtime testing infra isn't that useful
since you anyway need to change the test completely to get the right arch and
kernel. So yes, by all means, test it on the board :-)

 You just need to add this to the config:

BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_NUMPY=y

 And run this in Python:

import numpy as np
list = [1,2,3,4]
arr = np.array(list)
print (arr)



 Regards,
 Arnout

[1] http://patchwork.ozlabs.org/patch/1140773/

> 
> -Alexey
> 
> P.S. Pls pardon my noob's questions - if there's an answer in
> form of one-liner that would be super cool, otherwise docs will work.
> 



More information about the buildroot mailing list