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

Alexey Brodkin Alexey.Brodkin at synopsys.com
Tue Aug 6 09:32:43 UTC 2019


Hi Arnout, all,

> -----Original Message-----
> From: Arnout Vandecappelle <arnout at mind.be>
> Sent: Saturday, August 3, 2019 5:12 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 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)

It works perfectly fine:
------------------------------>8---------------------------------
# python
Python 3.7.4 (default, Aug  6 2019, 12:07:44)
[GCC 8.3.1 20190225] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> list = [1,2,3,4]
>>>
>>> arr = np.array(list)
>>> print (arr)
[1 2 3 4]
>>>

# uname -a
Linux buildroot 5.2.5 #2 PREEMPT Tue Aug 6 12:10:30 MSK 2019 arc GNU/Linux
------------------------------>8---------------------------------

-Alexey


More information about the buildroot mailing list