[Buildroot] [PATCH v3 1/2] dependencies.sh: Check for a host python version >= 2.7
aduskett at gmail.com
Tue Dec 18 16:13:27 UTC 2018
On Mon, Dec 17, 2018 at 6:25 PM Arnout Vandecappelle <arnout at mind.be> wrote:
> On 17/12/2018 14:10, ratbert90 wrote:
> > Hello Peter;
> > I would question as to why we would do anything to support such an old version of
>> Python that was EOLed over 5 years ago. Heck, even 2.7 will be EOLed in 2020.
> > Looking around, the only distribution that has 2.6 that still has any kind of support
>> is CentOS6, and even that is in maintenance mode.
> RHEL6 will be retired November 30, 2020. SLES11 also hase Python 2.6 and will
> be retired 31 Mar 2022.
> > 2.7 is a safe bet in my opinion.
> Indeed, because it can be installed both on RHEL6 and on SLES11.
> However, IIUC, it is *not* possible to install python 2.7 as the *default*
> python on these distros, because some scripts that are used in normal operation
> don't work with python 2.7.
In the case of RHEL; one can run: `source /opt/rh/python27/enable` which will
add the appropriate paths for Python2.7 to be the default.
As far as SLES11 goes, I don't know how many people use it, but it has to be
microscopic at this point.
> So, the test that you added to dependencies.sh is
> probably too strict, because it checks that python -V gives at least 2.7...
If one runs `source /opt/rh/python27/enable` in CentOS6, then running
will give 2.7.13.
More information about the buildroot