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

Alexander Kanavin alexander.kanavin at linux.intel.com
Thu Apr 13 10:18:42 UTC 2017


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.
>>
>> Make python and python3 recipes provide alternatives for
>> /usr/bin/python and /usr/bin/python-config. By default
>> python2 has higher priority over python3.
>
> 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 possible.

Also, if there are scripts on the image that refer to 'python', yet 
python 2.7 is not installed into the image, that's a missing RDEPENDS in 
the scripts recipe.

Alex




More information about the Openembedded-core mailing list