Re: Replace uses of deprecated Python module distutils.sysconfig - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Replace uses of deprecated Python module distutils.sysconfig
Date
Msg-id 1770572.1642980260@sss.pgh.pa.us
Whole thread Raw
In response to Replace uses of deprecated Python module distutils.sysconfig  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> The relevant part of distutils-install-layout.diff explaining this is:

> +(0)
> +   Starting with Python-2.6 Debian/Ubuntu uses for the Python which comes within
> +   the Linux distribution a non-default name for the installation directory. This
> +   is to avoid overwriting of the python modules which come with the distribution,
> +   which unfortunately is the upstream behaviour of the installation tools.

Yeah, I figured that the explanation was something like that.  Too bad
they didn't get it right.

I stopped to wonder if maybe the problem is that sysconfig.py is from the
"different distribution" that they're worried about here, but it doesn't
look like it:

tgl@rpi3:~$ dpkg -S /usr/lib/python2.7/sysconfig.py
libpython2.7-minimal:armhf: /usr/lib/python2.7/sysconfig.py
tgl@rpi3:~$ dpkg -S /usr/include/python2.7/Python.h
libpython2.7-dev:armhf: /usr/include/python2.7/Python.h

Oh well.  For a moment there I thought maybe this was a "missing
dev package" kind of problem, but it's hard to come to any other
conclusion than "packager screwed up".

            regards, tom lane



pgsql-hackers by date:

Previous
From: Corey Huinker
Date:
Subject: Re: WIP: System Versioned Temporal Table
Next
From: Noah Misch
Date:
Subject: Re: XLogReadRecord() error in XlogReadTwoPhaseData()