On 05/20/2019 10:52 AM, Khem Raj wrote: > On Sun, May 19, 2019 at 11:56 PM Alejandro Enedino Hernandez Samaniego < > alejandro.enedino.hernandez-samani...@xilinx.com> wrote: > >> Hey Khem, >> >> >> On 5/18/19 10:09 PM, Khem Raj wrote: >>> >>> >>> On 5/17/19 4:49 PM, Alejandro Enedino Hernandez Samaniego wrote: >>>> Both python-numpy and python3-numpy try to install the file: >>>> >>>> ${D}/${bindir}/f2py >>>> >>>> which causes an error during do_rootfs since the package manager >>>> complains about that. >>>> >>>> The numpy packages create basically copies of f2py script with the >>>> following names: >>>> f2py (on both) >>>> f2py2 (on python 2) >>>> f2py2.7 (on python 2) >>>> f2py3 (on python 3) >>>> f2py3.7 (on python 3) >>>> >>>> Remove the copy of f2py from python-numpy in favor of using the one >>>> from python3 >>>> to avoid installation issues at do_rootfs(). >>>> >>> >>> what if one does not install py3 ? >> >> >> If you only install py2, you could still execute f2py2 or f2py2.7, I'm >> simply >> >> favoring the py3 installation by default but it should be mostly harmless >> >> since there's still two other copies of the script with different names. > > > I think it should be such that it’s used from py2 if py3 is not installed > since otherwise it might break scripts
I don't think working on python2 issues is that important for the general OpenEmbedded case. Should be left to people that stubbornly cling to python2. https://python3statement.org/ numpy will not support Python2 after year end. Philip > >> >> >> Cheers, >> >> Alejandro >> >>> >>>> Signed-off-by: Alejandro Enedino Hernandez Samaniego >>>> <aleja...@xilinx.com> >>>> --- >>>> meta/recipes-devtools/python-numpy/python-numpy_1.16.3.bb | 4 ++++ >>>> 1 file changed, 4 insertions(+) >>>> >>>> diff --git >>>> a/meta/recipes-devtools/python-numpy/python-numpy_1.16.3.bb >>>> b/meta/recipes-devtools/python-numpy/python-numpy_1.16.3.bb >>>> index 5013789..a1133da 100644 >>>> --- a/meta/recipes-devtools/python-numpy/python-numpy_1.16.3.bb >>>> +++ b/meta/recipes-devtools/python-numpy/python-numpy_1.16.3.bb >>>> @@ -4,3 +4,7 @@ require python-numpy.inc >>>> RDEPENDS_${PN}_class-target_append = " \ >>>> ${PYTHON_PN}-subprocess \ >>>> " >>>> + >>>> +do_install_append(){ >>>> + rm ${D}/${bindir}/f2py >>>> +} >>>> >> > > > -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core