public inbox for [email protected]  
help / color / mirror / Atom feed
Buildfarm update to Python 3 needed
3+ messages / 2 participants
[nested] [flat]

* Buildfarm update to Python 3 needed
@ 2022-01-13 16:56 Tom Lane <[email protected]>
  2022-01-21 18:28 ` Re: Buildfarm update to Python 3 needed Tom Lane <[email protected]>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2022-01-13 16:56 UTC (permalink / raw)
  To: [email protected]

Per recent discussions on pgsql-hackers [1], we are intending
to desupport Python 2 in Postgres beginning in v15.  This means
that for buildfarm animals to build/test plpython, it will soon
be necessary for them to have a Python 3 installation.

If there is already a "python3" available in the animal's PATH,
you don't need to do anything; it will automatically start using
that when the switchover is made.  Otherwise, you can either
install Python 3.x, or remove "--with-python" from the animal's
configuration.

If you're manually forcing choice of a particular Python
installation by setting the PYTHON environment variable, you'll
need to adjust that variable to point at a Python 3 installation.

Note that there's no need to change which Python is used for
building v14 and earlier, though you're free to do so if you
prefer.

Which 3.x minor version to use is mostly up to you.  Be aware
however that there's been discussion of switching our build
system from autoconf/gmake to meson/ninja; if that happens,
it'll create a requirement to have at least Python 3.6.

We anticipate making this change in mid-February, so you have
a month to do whatever needs to be done with your buildfarm
animals.

			regards, tom lane

[1] https://www.postgresql.org/message-id/flat/20211031184548.g4sxfe47n2kyi55r%40alap3.anarazel.de





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Buildfarm update to Python 3 needed
  2022-01-13 16:56 Buildfarm update to Python 3 needed Tom Lane <[email protected]>
@ 2022-01-21 18:28 ` Tom Lane <[email protected]>
  2022-01-21 22:42   ` Re: Buildfarm update to Python 3 needed Mikael Kjellström <[email protected]>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2022-01-21 18:28 UTC (permalink / raw)
  To: [email protected]

I wrote:
> Per recent discussions on pgsql-hackers [1], we are intending
> to desupport Python 2 in Postgres beginning in v15.  This means
> that for buildfarm animals to build/test plpython, it will soon
> be necessary for them to have a Python 3 installation.

We ran a small test case to see which buildfarm members are ready
for this changeover, by seeing what happens if python3 is chosen
by configure.  Here's the results.

These animals have python3, but failed to find an associated
Python.h (this likely means you need to install python3-dev
or local equivalent, not just the base package):

ayu
bonito
bufflehead
butterflyfish
cavefish
chimaera
gadwall
grison
hippopotamus
jay
massasauga
myna
pintail
snakefly
takin
urocryon

These animals definitely don't have python3 installed:

buri
clam
curculio
dhole
quokka
rhinoceros
scoter

These animals possibly don't have python3 installed (they didn't
run yesterday, so I'm not sure):

bichir
chipmunk
mantid
skate
snapper
topminnow

Also two special cases:

haddock has a python3, but apparently it's 64-bit and so won't
work in a 32-bit Postgres build.

guaibasaurus failed like this:

checking for python3... /usr/bin/python3
configure: using python 3.7.3 (default, Jan 22 2021, 20:04:44) 
checking for Python distutils module... yes
checking Python configuration directory... Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils.sysconfig'

Seems to also be a missing-package issue, but I'm not sure what.

All the other active animals seem to be ready to go.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Buildfarm update to Python 3 needed
  2022-01-13 16:56 Buildfarm update to Python 3 needed Tom Lane <[email protected]>
  2022-01-21 18:28 ` Re: Buildfarm update to Python 3 needed Tom Lane <[email protected]>
@ 2022-01-21 22:42   ` Mikael Kjellström <[email protected]>
  0 siblings, 0 replies; 3+ messages in thread

From: Mikael Kjellström @ 2022-01-21 22:42 UTC (permalink / raw)
  To: Tom Lane <[email protected]>; [email protected]


On 2022-01-21 19:28, Tom Lane wrote:

> We ran a small test case to see which buildfarm members are ready
> for this changeover, by seeing what happens if python3 is chosen
> by configure.  Here's the results.
> 
> These animals have python3, but failed to find an associated
> Python.h (this likely means you need to install python3-dev
> or local equivalent, not just the base package):

> grison

Should be fixed since a couple of days ago.  It didn't have the 
python3-dev package installed.


> These animals definitely don't have python3 installed:
> curculio

Just installed python-3.5.1 on it.

/Mikael





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2022-01-21 22:42 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13 16:56 Buildfarm update to Python 3 needed Tom Lane <[email protected]>
2022-01-21 18:28 ` Tom Lane <[email protected]>
2022-01-21 22:42   ` Mikael Kjellström <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox