Re: Replace uses of deprecated Python module distutils.sysconfig
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-01-18T16:47:37Z
Lists: pgsql-hackers
On 18.01.22 16:24, Tom Lane wrote: > Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes: >> Also, considering the failure on prairiedog, I do see now on >> <https://docs.python.org/3/library/sysconfig.html> that the sysconfig >> module is "New in version 3.2". I had interpreted the fact that it >> exists in version 2.7 that that includes all higher versions, but >> obviously there were multiple branches involved, so that was a mistaken >> assumption. > > Hm. I installed 3.1 because we claim support for that. I don't mind > updating to 3.2 (as long as we adjust the docs to match), but it seems > kinda moot unless you figure out a solution for the include-path > issue. I see that platforms as recent as Debian 10 are failing, > so I don't think we can dismiss that as not needing fixing. I have reverted this for now. I don't have a clear idea how to fix this in the long run. We would perhaps need to determine at which points the various platforms had fixed this issue in their Python installations and select between the old and the new approach based on that. Seems messy.
Commits
-
Replace use of deprecated Python module distutils.sysconfig, take 2.
- e41176bd6f47 11.15 landed
- aa2215d6b8ac 12.10 landed
- a72c430120cf 10.20 landed
- 803f0b173906 14.2 landed
- 4d7d196ff693 13.6 landed
- bd233bdd8dd9 15.0 landed
-
Temporarily add some information about python include paths to configure.
- f032f63e727c 15.0 landed
-
Revert "Make configure prefer python3 to plain python."
- 512fc2dd790e 15.0 landed
-
Make configure prefer python3 to plain python.
- f201da39edcd 15.0 landed
-
Replace use of deprecated Python module distutils.sysconfig
- e0e567a10672 15.0 landed