Re: [OE-core] [PATCH] python: make python2 and python3 alternatives to python

2017-04-18 Thread Burton, Ross
On 18 April 2017 at 09:44, Dmitry Rozhkov wrote: > I've just checked PEP-349. It recommends that > > "- The more general python command should be installed whenever any > version of Python 2 is installed and should invoke the same version of > Python as the

Re: [OE-core] [PATCH] python: make python2 and python3 alternatives to python

2017-04-18 Thread Dmitry Rozhkov
On Thu, 2017-04-13 at 15:47 +0100, Burton, Ross wrote: > > On 13 April 2017 at 11:15, Alexander Kanavin .intel.com> wrote: > > This runs against upstream recommendation and common distro > > practice. And it will break scripts that have not been ported to > > Python 3.

Re: [OE-core] [PATCH] python: make python2 and python3 alternatives to python

2017-04-13 Thread Burton, Ross
On 13 April 2017 at 11:15, Alexander Kanavin < alexander.kana...@linux.intel.com> wrote: > This runs against upstream recommendation and common distro practice. And > it will break scripts that have not been ported to Python 3. Please fix the > scripts instead to refer to python 3 whenever

Re: [OE-core] [PATCH] python: make python2 and python3 alternatives to python

2017-04-13 Thread Alexander Kanavin
On 04/13/2017 01:15 PM, Alexander Kanavin wrote: On 04/13/2017 11:33 AM, Dmitry Rozhkov wrote: If only python3 is installed on an image nothing provides /usr/bin/python even though many scripts compatible with both python2 and python3 just state `#!/usr/bin/env python` in their shebang line.

Re: [OE-core] [PATCH] python: make python2 and python3 alternatives to python

2017-04-13 Thread Alexander Kanavin
On 04/13/2017 11:33 AM, Dmitry Rozhkov wrote: If only python3 is installed on an image nothing provides /usr/bin/python even though many scripts compatible with both python2 and python3 just state `#!/usr/bin/env python` in their shebang line. Make python and python3 recipes provide

[OE-core] [PATCH] python: make python2 and python3 alternatives to python

2017-04-13 Thread Dmitry Rozhkov
If only python3 is installed on an image nothing provides /usr/bin/python even though many scripts compatible with both python2 and python3 just state `#!/usr/bin/env python` in their shebang line. Make python and python3 recipes provide alternatives for /usr/bin/python and