<p dir="ltr"><br>
On Jul 25, 2013 12:13 AM, &quot;Bohuslav Kabrda&quot; &lt;<a href="mailto:bkabrda@redhat.com">bkabrda@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt; &gt; Since Python upstream really cares about these things, I started a discussion<br>
&gt; &gt; about this on their mailing list [1]. So far, it seems that people prefer my<br>
&gt; &gt; mental model, but this is judging from just 4 answers, 2 of which mentioned<br>
&gt; &gt; this. So let&#39;s wait and see.<br>
&gt; &gt; BTW, if Python 2 and Python 3 were different languages, then IMO it wouldn&#39;t<br>
&gt; &gt; make sense to point /usr/bin/python to Python 3, while upstream plans to<br>
&gt; &gt; actually give the recommendation to do so sometime in the future.<br>
&gt; &gt;<br>
&gt;<br>
&gt; So, judging from what upstream has recommended (and how they will modify pep 394), we should:<br>
&gt; - Mandate usage of /usr/bin/python2 and prohibit usage of /usr/bin/python (I think this can be done automatically in %__os_install_post, or somewhere similar) - we should probably do that ASAP</p>
<p dir="ltr">&lt;nod&gt;.  Which means patching in a bunch of packages.  For os_install_post modification you&#39;re talking about a check that fails the build if /usr/bin/python is used?  I note that upstream envisions some cases where /usr/bin/python is correct but I don&#39;t recall any package where we&#39;d have invoked that clause (the case is when the code will run on either python2 or on python3)</p>

<p dir="ltr">/me goes to the upstream thread to ask Nick what distutils/setuptools/etc do when they rewrite shebang lines.</p>
<p dir="ltr">&gt; - Rename python to python2 and add &quot;Provides: python&quot; for the time being (the similar should probably be done for all python packages to keep things consistent) - we can do this for F21</p>
<p dir="ltr">Renaming other packages gets problematic.  See the previous discussion on python-devel@lists.fp.o that tomspur championed.  (This was one of the items I was hoping could be discussed at flock) You wouldn&#39;t expect to report bugs for the python3-foo library against the python2-foo package for instance.  One possibility that we talked about was to stop shipping python3 packages as subpackages of the python2 modules.</p>

<p dir="ltr">&gt; - Somewhere in the future switch &quot;Provides: python&quot; to python3 stuff and possibly /usr/bin/python to point to python3, according to upstream recommendation (2015?) to keep consistent across multiple platforms as much as possible.<br>

&gt;</p>
<p dir="ltr">Rather than 2015 I&#39;d tie it to when upstream switches the recommendation in pep 394.</p>
<p dir="ltr">-Toshio</p>