<div><div dir="auto"><br></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 20, 2019 at 7:58 AM Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 2019-05-20 at 07:52 -0700, Khem Raj wrote:<br>
&gt; On Sun, May 19, 2019 at 11:56 PM Alejandro Enedino Hernandez<br>
&gt; Samaniego &lt;<a href="mailto:alejandro.enedino.hernandez-samaniego@xilinx.com" target="_blank">alejandro.enedino.hernandez-samaniego@xilinx.com</a>&gt; wrote:<br>
&gt; &gt; Hey Khem,<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; On 5/18/19 10:09 PM, Khem Raj wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 5/17/19 4:49 PM, Alejandro Enedino Hernandez Samaniego wrote:<br>
&gt; &gt; &gt;&gt; Both python-numpy and python3-numpy try to install the file:<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; ${D}/${bindir}/f2py<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; which causes an error during do_rootfs since the package<br>
&gt; &gt; manager <br>
&gt; &gt; &gt;&gt; complains about that.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; The numpy packages create basically copies of f2py script with<br>
&gt; &gt; the <br>
&gt; &gt; &gt;&gt; following names:<br>
&gt; &gt; &gt;&gt; f2py (on both)<br>
&gt; &gt; &gt;&gt; f2py2 (on python 2)<br>
&gt; &gt; &gt;&gt; f2py2.7 (on python 2)<br>
&gt; &gt; &gt;&gt; f2py3 (on python 3)<br>
&gt; &gt; &gt;&gt; f2py3.7 (on python 3)<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Remove the copy of f2py from python-numpy in favor of using the<br>
&gt; &gt; one <br>
&gt; &gt; &gt;&gt; from python3<br>
&gt; &gt; &gt;&gt; to avoid installation issues at do_rootfs().<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; what if one does not install py3 ?<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; If you only install py2, you could still execute f2py2 or f2py2.7,<br>
&gt; &gt; I&#39;m <br>
&gt; &gt; simply<br>
&gt; &gt; <br>
&gt; &gt; favoring the py3 installation by default but it should be mostly<br>
&gt; &gt; harmless<br>
&gt; &gt; <br>
&gt; &gt; since there&#39;s still two other copies of the script with different<br>
&gt; &gt; names.<br>
&gt; <br>
&gt; I think it should be such that it’s used from py2 if py3 is not<br>
&gt; installed since otherwise it might break scripts <br>
<br>
Given we&#39;re strongly favouring py3 now, I&#39;d hope there aren&#39;t many such<br>
users and if there are, this might encourage them to move to py3? I&#39;m<br>
not too worried about the lack of a py2 case for this as do we really<br>
want to add the complexity?<br>
<br>
If there are a load of py2 users and this will break things for them,<br>
fine but are there such users?</blockquote><div dir="auto"><br></div><div dir="auto">Yes I know people using py2 only but then they might not be using this utility specifically so it might be okay to ignore it for now </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Cheers,<br>
<br>
Richard<br>
<br>
</blockquote></div></div>