<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 19, 2019 at 11:56 PM Alejandro Enedino Hernandez Samaniego <<a href="mailto:alejandro.enedino.hernandez-samaniego@xilinx.com">alejandro.enedino.hernandez-samaniego@xilinx.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Khem,<br>
<br>
<br>
On 5/18/19 10:09 PM, Khem Raj wrote:<br>
><br>
><br>
> On 5/17/19 4:49 PM, Alejandro Enedino Hernandez Samaniego wrote:<br>
>> Both python-numpy and python3-numpy try to install the file:<br>
>><br>
>> ${D}/${bindir}/f2py<br>
>><br>
>> which causes an error during do_rootfs since the package manager <br>
>> complains about that.<br>
>><br>
>> The numpy packages create basically copies of f2py script with the <br>
>> following names:<br>
>> f2py (on both)<br>
>> f2py2 (on python 2)<br>
>> f2py2.7 (on python 2)<br>
>> f2py3 (on python 3)<br>
>> f2py3.7 (on python 3)<br>
>><br>
>> Remove the copy of f2py from python-numpy in favor of using the one <br>
>> from python3<br>
>> to avoid installation issues at do_rootfs().<br>
>><br>
><br>
> what if one does not install py3 ?<br>
<br>
<br>
If you only install py2, you could still execute f2py2 or f2py2.7, I'm <br>
simply<br>
<br>
favoring the py3 installation by default but it should be mostly harmless<br>
<br>
since there's still two other copies of the script with different names.</blockquote><div dir="auto"><br></div><div dir="auto">I think it should be such that it’s used from py2 if py3 is not installed since otherwise it might break scripts </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Cheers,<br>
<br>
Alejandro<br>
<br>
><br>
>> Signed-off-by: Alejandro Enedino Hernandez Samaniego <br>
>> <<a href="mailto:alejandr@xilinx.com" target="_blank">alejandr@xilinx.com</a>><br>
>> ---<br>
>> meta/recipes-devtools/python-numpy/<a href="http://python-numpy_1.16.3.bb" rel="noreferrer" target="_blank">python-numpy_1.16.3.bb</a> | 4 ++++<br>
>> 1 file changed, 4 insertions(+)<br>
>><br>
>> diff --git <br>
>> a/meta/recipes-devtools/python-numpy/<a href="http://python-numpy_1.16.3.bb" rel="noreferrer" target="_blank">python-numpy_1.16.3.bb</a> <br>
>> b/meta/recipes-devtools/python-numpy/<a href="http://python-numpy_1.16.3.bb" rel="noreferrer" target="_blank">python-numpy_1.16.3.bb</a><br>
>> index 5013789..a1133da 100644<br>
>> --- a/meta/recipes-devtools/python-numpy/<a href="http://python-numpy_1.16.3.bb" rel="noreferrer" target="_blank">python-numpy_1.16.3.bb</a><br>
>> +++ b/meta/recipes-devtools/python-numpy/<a href="http://python-numpy_1.16.3.bb" rel="noreferrer" target="_blank">python-numpy_1.16.3.bb</a><br>
>> @@ -4,3 +4,7 @@ require python-numpy.inc<br>
>> RDEPENDS_${PN}_class-target_append = " \<br>
>> ${PYTHON_PN}-subprocess \<br>
>> "<br>
>> +<br>
>> +do_install_append(){<br>
>> + rm ${D}/${bindir}/f2py<br>
>> +}<br>
>><br>
</blockquote></div></div>