<blockquote>
<p>First of all, while PEP 394 recommends this, it's not what's common practice amongst distros, where Arch not even being a RPM based distro makes it less relevant.</p>
<p>I know of no rpm based distros where /usr/bin/python isn't pointing to the default python interpreter binary version.</p>
</blockquote>
<p>I've just checked and the following RPM-based distros are keeping with the upstream recommendation of keeping <code>/usr/bin/python</code> always pointing to Python 2 (and if Python 2 isn't installed then<code>/usr/bin/python</code> doesn't exist):</p>
<ul>
<li>Fedora</li>
<li>RHEL</li>
<li>openSUSE</li>
<li>Mandriva (though here the container I found and tested was a bit old)</li>
</ul>
<p>I would argue that's a solid chunk of the RPM-based distros.</p>
<blockquote>
<p>However, if you really think this is a necessity (where forcing distros still using python2 to patch the shebang themself would be considered less acceptable than not adhering to PEP 394),</p>
</blockquote>
<p>Right now the above distros are being forced to patch it. I think the burden of a patch should lie with the Python 2–only distros nowadays, this close to Python 2 EOL.</p>
<blockquote>
<p>the patch betlow would be the more proper way to achieve your goal.<br>
This one also ensures that this $PYTHON is used for both %__python and the python bindings as well.</p>
</blockquote>
<p>The patch looks interesting, though I'm not nearly experienced enough with the RPM code base to vet it. My only suggestion would be to set the default to <code>/usr/bin/python3</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/212#issuecomment-299224600">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ANb80wOsan2Rq2z2zLoGvJUpxqNUerxPks5r2fG8gaJpZM4NPlHS">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ANb80-Uacs7_9uL8nMk5gVCEDFiC4yBpks5r2fG8gaJpZM4NPlHS.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/rpm-software-management/rpm/pull/212#issuecomment-299224600"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/rpm-software-management/rpm","title":"rpm-software-management/rpm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/rpm-software-management/rpm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@torsava in #212: \u003e First of all, while PEP 394 recommends this, it's not what's common practice amongst distros, where Arch not even being a RPM based distro makes it less relevant.\r\n\u003e \r\n\u003e I know of no rpm based distros where /usr/bin/python isn't pointing to the default python interpreter binary version.\r\n\r\nI've just checked and the following RPM-based distros are keeping with the upstream recommendation of keeping `/usr/bin/python` always pointing to Python 2 (and if Python 2 isn't installed then`/usr/bin/python` doesn't exist):\r\n\r\n * Fedora\r\n * RHEL\r\n * openSUSE\r\n * Mandriva (though here the container I found and tested was a bit old)\r\n\r\nI would argue that's a solid chunk of the RPM-based distros.\r\n\r\n\u003e However, if you really think this is a necessity (where forcing distros still using python2 to patch the shebang themself would be considered less acceptable than not adhering to PEP 394), \r\n\r\nRight now the above distros are being forced to patch it. I think the burden of a patch should lie with the Python 2–only distros nowadays, this close to Python 2 EOL.\r\n\r\n\u003e the patch betlow would be the more proper way to achieve your goal.\r\n\u003e This one also ensures that this $PYTHON is used for both %__python and the python bindings as well.\r\n\r\nThe patch looks interesting, though I'm not nearly experienced enough with the RPM code base to vet it. My only suggestion would be to set the default to `/usr/bin/python3`.\r\n"}],"action":{"name":"View Pull Request","url":"https://github.com/rpm-software-management/rpm/pull/212#issuecomment-299224600"}}}</script>