diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-01-18 06:35:04 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-01-18 06:37:02 +0100 |
commit | e0e567a106726f6709601ee7cffe73eb6da8084e (patch) | |
tree | 6e95dd25b0598d2be6b56810d5985c9e18646f27 /doc/src | |
parent | d3f45323bbe734bff1f778bb819ce95b718d73ed (diff) | |
download | postgresql-e0e567a106726f6709601ee7cffe73eb6da8084e.tar.gz postgresql-e0e567a106726f6709601ee7cffe73eb6da8084e.zip |
Replace use of deprecated Python module distutils.sysconfig
With Python 3.10, configure spits out warnings about the module
distutils.sysconfig being deprecated and scheduled for removal in
Python 3.12. Change the uses in configure to use the module sysconfig
instead. The logic stays the same.
Note that sysconfig exists since Python 2.7, so this moves the minimum
required version up from Python 2.6.
Discussion: https://www.postgresql.org/message-id/flat/c74add3c-09c4-a9dd-1a03-a846e5b2fc52%40enterprisedb.com
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/installation.sgml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index d38f9bc9160..a449719fd33 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -195,8 +195,8 @@ su - postgres To build the <application>PL/Python</application> server programming language, you need a <productname>Python</productname> installation with the header files and - the <application>distutils</application> module. The minimum - required version is <productname>Python</productname> 2.6. + the <application>sysconfig</application> module. The minimum + required version is <productname>Python</productname> 2.7. <productname>Python 3</productname> is supported if it's version 3.1 or later; but see <xref linkend="plpython-python23"/> |