Re: Time to drop plpython2?
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Joe Conway <mail@joeconway.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>, Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@postgresql.org, Andrew Dunstan <andrew@dunslane.net>
Date: 2022-02-18T20:25:33Z
Lists: pgsql-hackers
Hi, On 2022-02-18 14:46:39 -0500, Joe Conway wrote: > On 2/18/22 14:37, Andres Freund wrote: > > > That seems to have worked. > > > > > > But the question is, is that the correct/recommended method? > > > > If python3 is in PATH, then you shouldn't need that part. > > Not quite -- python3 is definitely in the PATH: > > 8<------------------- > $ which python3 > /usr/bin/python3 > 8<------------------- > > And I gather that merely installing python3 RPMs on a RHEL-esque 7.X system > does not replace the python symlink: > > 8<------------------- > $ yum whatprovides /usr/bin/python > > python-2.7.5-89.el7.x86_64 : An interpreted, interactive, object-oriented > programming language > Repo : base > Matched from: > Filename : /usr/bin/python > > $ ll /usr/bin/python > lrwxrwxrwx. 1 root root 7 Mar 13 2021 /usr/bin/python -> python2 > 8<------------------- Yea, that all looks fine. What's the problem if you don't specify the PYTHON=python3? We try python3, python in that order by default, so it should pick up the same python3 you specify explicitly? Or maybe I'm just misunderstanding what you're asking... Greetings, Andres Freund
Commits
-
plpython: add missing plpython.h include to plpy_plpymodule.h
- 54c72eb5e5e6 15.0 landed
-
plpython: Adjust docs after removal of Python 2 support.
- 4228cabb72bb 15.0 landed
-
plpython: Code cleanup related to removal of Python 2 support.
- 9b7e24a2cb37 15.0 landed
-
plpython: Remove regression test infrastructure for Python 2.
- db23464715f4 15.0 landed
-
plpython: Remove plpythonu, plpython2u and associated transform extensions.
- 76a29adee749 15.0 landed
-
plpython: Reject Python 2 during build configuration.
- 19252e8ec938 15.0 landed
-
Add traceback information to PL/Python errors
- 2bd78eb8d51c 9.1.0 cited