Replace use of deprecated Python module distutils.sysconfig
Peter Eisentraut <peter@eisentraut.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| config/python.m4 | modified | +14 −14 |
| configure | modified | +15 −15 |
| doc/src/sgml/installation.sgml | modified | +2 −2 |
Documentation touched
Discussion
- Replace uses of deprecated Python module distutils.sysconfig 52 messages · 2021-12-02 → 2022-02-01