From 535a3b411db12370f2abad39758e2c80a1cb3f18 Mon Sep 17 00:00:00 2001 From: Churchyard Date: Jul 26 2017 10:40:38 +0000 Subject: *Empty MediaWiki Message* --- diff --git a/guidelines/User:Churchyard%2FPackaging:Python.mw b/guidelines/User:Churchyard%2FPackaging:Python.mw index 9ae5bc0..8de7c78 100644 --- a/guidelines/User:Churchyard%2FPackaging:Python.mw +++ b/guidelines/User:Churchyard%2FPackaging:Python.mw @@ -9,7 +9,7 @@ In Fedora we have multiple Python runtimes, one for each supported major Python Each runtime corresponds to a binary of the form /usr/bin/python$MAJOR.$MINOR. One of these python runtimes is the "system runtime" which is what is run when invoking /usr/bin/python. On Fedora 22, for example, this is a link to /usr/bin/python2 (which itself is a link to /usr/bin/python2.7). -However, packages in Fedora must not depend on where /usr/bin/python happens to point but instead must call the proper executable for the needed python major version directly, either /usr/bin/python2 or /usr/bin/python3 as appropriate. As a result of that /usr/bin/python is also explicitly forbidden in shebangs and as a dependency of a package. +However, packages in Fedora must not depend on where /usr/bin/python happens to point but instead must call the proper executable for the needed python major version directly, either /usr/bin/python2 or /usr/bin/python3 as appropriate. As a result of that /usr/bin/python (as well as /usr/bin/env python and similar) is also explicitly forbidden in shebangs and as a dependency of a package. All python runtimes have a virtual provide for python(abi) = $MAJOR-$MINOR. For example, the python-3.4 runtime rpm has: $ rpm -q --provides python3 |grep -i abi