Re: Replace uses of deprecated Python module distutils.sysconfig
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>, Andrew Dunstan <andrew@dunslane.net>, pgsql-hackers@lists.postgresql.org
Date: 2022-01-23T23:19:11Z
Lists: pgsql-hackers
Hi, On 2022-01-23 18:11:41 -0500, Tom Lane wrote: > It may be that one of the other "scheme" values accurately describes > Debian's actual layout of this package. I didn't check, because the > scheme is defined to be platform-specific. posix_prefix does, as far as I can see. > Specifying a particular value for it would therefore break other platforms. Hence the suggestion to only force posix_prefix when posix_local (the debian invention) otherwise would get used... > Anyway, trying to figure out whether we're on a Debian package with this > mistake doesn't seem any cleaner than what I proposed. (In particular, > blindly changing to a different scheme without a check to see what's really > in the filesystem seems doomed to failure.) If we make it depend on _get_default_scheme() == 'posix_local' that shouldn't be a risk, because that's the debian addition... Greetings, Andres Freund
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