<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 &lt;<a href="mailto:alejandro.enedino.hernandez-samaniego@xilinx.com">alejandro.enedino.hernandez-samaniego@xilinx.com</a>&gt; 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>
&gt;<br>
&gt;<br>
&gt; On 5/17/19 4:49 PM, Alejandro Enedino Hernandez Samaniego wrote:<br>
&gt;&gt; Both python-numpy and python3-numpy try to install the file:<br>
&gt;&gt;<br>
&gt;&gt; ${D}/${bindir}/f2py<br>
&gt;&gt;<br>
&gt;&gt; which causes an error during do_rootfs since the package manager <br>
&gt;&gt; complains about that.<br>
&gt;&gt;<br>
&gt;&gt; The numpy packages create basically copies of f2py script with the <br>
&gt;&gt; following names:<br>
&gt;&gt; f2py (on both)<br>
&gt;&gt; f2py2 (on python 2)<br>
&gt;&gt; f2py2.7 (on python 2)<br>
&gt;&gt; f2py3 (on python 3)<br>
&gt;&gt; f2py3.7 (on python 3)<br>
&gt;&gt;<br>
&gt;&gt; Remove the copy of f2py from python-numpy in favor of using the one <br>
&gt;&gt; from python3<br>
&gt;&gt; to avoid installation issues at do_rootfs().<br>
&gt;&gt;<br>
&gt;<br>
&gt; what if one does not install py3 ?<br>
<br>
<br>
If you only install py2, you could still execute f2py2 or f2py2.7, I&#39;m <br>
simply<br>
<br>
favoring the py3 installation by default but it should be mostly harmless<br>
<br>
since there&#39;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>
&gt;<br>
&gt;&gt; Signed-off-by: Alejandro Enedino Hernandez Samaniego <br>
&gt;&gt; &lt;<a href="mailto:alejandr@xilinx.com" target="_blank">alejandr@xilinx.com</a>&gt;<br>
&gt;&gt; ---<br>
&gt;&gt;   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>
&gt;&gt;   1 file changed, 4 insertions(+)<br>
&gt;&gt;<br>
&gt;&gt; diff --git <br>
&gt;&gt; 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>
&gt;&gt; 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>
&gt;&gt; index 5013789..a1133da 100644<br>
&gt;&gt; --- 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>
&gt;&gt; +++ 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>
&gt;&gt; @@ -4,3 +4,7 @@ require python-numpy.inc<br>
&gt;&gt;   RDEPENDS_${PN}_class-target_append = &quot; \<br>
&gt;&gt;       ${PYTHON_PN}-subprocess \<br>
&gt;&gt;   &quot;<br>
&gt;&gt; +<br>
&gt;&gt; +do_install_append(){<br>
&gt;&gt; +        rm ${D}/${bindir}/f2py<br>
&gt;&gt; +}<br>
&gt;&gt;<br>
</blockquote></div></div>