Re: Minimum supported version of Python?

From: David Johnston <polobo(at)yahoo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Minimum supported version of Python?
Date: 2014-03-18 02:52:26
Message-ID: 1395111146922-5796512.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut-2 wrote
> On Sat, 2014-03-15 at 20:55 -0400, Tom Lane wrote:
>> Our documentation claims that the minimum Python version for plpython
>> is 2.3. However, an attempt to build with that on an old Mac yielded
>> a bunch of failures in the plpython_types regression test,
>
> It has frequently been the case that the last supported version does not
> fully pass the regression test, because of the overhead of maintaining
> variant files. The last supported version is the one that compiles and
> works. You will note that 2.2 no longer compiles. (It also failed the
> regression tests for a while before it started not compiling.)
> Typically, versions fall out of support because we add new functionality
> that the old Python versions cannot support anymore.
>
>> all of the form
>>
>> ! ERROR: could not import a module for Decimal constructor
>> ! DETAIL: ImportError: No module named decimal
>
> You can make this work by manually installing the decimal module
> (because it was not part of the core in Python 2.3). Otherwise, this
> test result legitimately alerts you that some feature is not fully
> working and that you need to adjust your installation.

It would seem a single error (or warning, depending) like "Missing
Dependency" at the start and skipping all tests dependent on the error would
be cleaner. So that if someone goes an blindly starts running a clean 2.3
regression test they are not drowned in a sea of errors and no clear
documentation as to why and how to resolve.

Now, odds are the assumption that Decimal is present is spread through the
code-base so maybe something less invasive?

David J.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Minimum-supported-version-of-Python-tp5796175p5796512.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-03-18 02:55:18 Re: Minimum supported version of Python?
Previous Message Robert Haas 2014-03-18 02:49:55 Re: Portability issues in shm_mq