pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Replace use of deprecated Python module distutils.sysconfig
7+ messages / 2 participants
[nested] [flat]
* pgsql: Replace use of deprecated Python module distutils.sysconfig
@ 2022-01-18 05:45 Peter Eisentraut <peter@eisentraut.org>
0 siblings, 0 replies; 7+ messages in thread
From: Peter Eisentraut @ 2022-01-18 05:45 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e0e567a106726f6709601ee7cffe73eb6da8084e
Modified Files
--------------
config/python.m4 | 28 ++++++++++++++--------------
configure | 30 +++++++++++++++---------------
doc/src/sgml/installation.sgml | 4 ++--
3 files changed, 31 insertions(+), 31 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Replace use of deprecated Python module distutils.sysconfig, tak
@ 2022-01-25 23:52 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2022-01-25 23:52 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Replace use of deprecated Python module distutils.sysconfig, take 2.
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 largely the same, although we have to
rely on INCLUDEPY instead of the deprecated get_python_inc function.
Note that sysconfig exists since Python 2.7, so this moves the minimum
required version up from Python 2.6. Also, sysconfig didn't exist in
Python 3.1, so the minimum 3.x version is now 3.2.
We should consider back-patching this if it gives no further trouble,
as the no-longer-supported versions are old enough to probably not
be interesting to anyone.
Peter Eisentraut, Tom Lane, Andres Freund
Discussion: https://postgr.es/m/c74add3c-09c4-a9dd-1a03-a846e5b2fc52@enterprisedb.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/bd233bdd8dd95ea127a921998847724c44295736
Modified Files
--------------
config/python.m4 | 33 +++++++++++++--------------------
configure | 37 +++++++++++++++----------------------
doc/src/sgml/installation.sgml | 6 +++---
3 files changed, 31 insertions(+), 45 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Replace use of deprecated Python module distutils.sysconfig, tak
@ 2022-02-02 00:03 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2022-02-02 00:03 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Replace use of deprecated Python module distutils.sysconfig, take 2.
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 largely the same, although we have to
rely on INCLUDEPY instead of the deprecated get_python_inc function.
Note that sysconfig exists since Python 2.7, so this moves the
minimum required version up from Python 2.6 (or 2.4, before v13).
Also, sysconfig didn't exist in Python 3.1, so the minimum 3.x
version is now 3.2.
Back-patch of commit bd233bdd8 into all supported branches.
In v10, this also includes back-patching v11's beff4bb9c, primarily
because this opinion is clearly out-of-date:
While at it, get rid of the code's assumption that both the major and
minor numbers contain exactly one digit. That will foreseeably be
broken by Python 3.10 in perhaps four or five years. That's far enough
out that we probably don't need to back-patch this.
Peter Eisentraut, Tom Lane, Andres Freund
Discussion: https://postgr.es/m/c74add3c-09c4-a9dd-1a03-a846e5b2fc52@enterprisedb.com
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/803f0b1739065b2d1d46c4a72c99b46cdd354f60
Modified Files
--------------
config/python.m4 | 33 +++++++++++++--------------------
configure | 37 +++++++++++++++----------------------
doc/src/sgml/installation.sgml | 6 +++---
3 files changed, 31 insertions(+), 45 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Replace use of deprecated Python module distutils.sysconfig, tak
@ 2022-02-02 00:03 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2022-02-02 00:03 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Replace use of deprecated Python module distutils.sysconfig, take 2.
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 largely the same, although we have to
rely on INCLUDEPY instead of the deprecated get_python_inc function.
Note that sysconfig exists since Python 2.7, so this moves the
minimum required version up from Python 2.6 (or 2.4, before v13).
Also, sysconfig didn't exist in Python 3.1, so the minimum 3.x
version is now 3.2.
Back-patch of commit bd233bdd8 into all supported branches.
In v10, this also includes back-patching v11's beff4bb9c, primarily
because this opinion is clearly out-of-date:
While at it, get rid of the code's assumption that both the major and
minor numbers contain exactly one digit. That will foreseeably be
broken by Python 3.10 in perhaps four or five years. That's far enough
out that we probably don't need to back-patch this.
Peter Eisentraut, Tom Lane, Andres Freund
Discussion: https://postgr.es/m/c74add3c-09c4-a9dd-1a03-a846e5b2fc52@enterprisedb.com
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/4d7d196ff69365041579024848f34ee57ac75223
Modified Files
--------------
config/python.m4 | 33 +++++++++++++--------------------
configure | 37 +++++++++++++++----------------------
doc/src/sgml/installation.sgml | 6 +++---
3 files changed, 31 insertions(+), 45 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Replace use of deprecated Python module distutils.sysconfig, tak
@ 2022-02-02 00:03 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2022-02-02 00:03 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Replace use of deprecated Python module distutils.sysconfig, take 2.
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 largely the same, although we have to
rely on INCLUDEPY instead of the deprecated get_python_inc function.
Note that sysconfig exists since Python 2.7, so this moves the
minimum required version up from Python 2.6 (or 2.4, before v13).
Also, sysconfig didn't exist in Python 3.1, so the minimum 3.x
version is now 3.2.
Back-patch of commit bd233bdd8 into all supported branches.
In v10, this also includes back-patching v11's beff4bb9c, primarily
because this opinion is clearly out-of-date:
While at it, get rid of the code's assumption that both the major and
minor numbers contain exactly one digit. That will foreseeably be
broken by Python 3.10 in perhaps four or five years. That's far enough
out that we probably don't need to back-patch this.
Peter Eisentraut, Tom Lane, Andres Freund
Discussion: https://postgr.es/m/c74add3c-09c4-a9dd-1a03-a846e5b2fc52@enterprisedb.com
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/aa2215d6b8acee3604e16d5f5f2c3f40fc045bb4
Modified Files
--------------
config/python.m4 | 33 +++++++++++++--------------------
configure | 37 +++++++++++++++----------------------
doc/src/sgml/installation.sgml | 6 +++---
3 files changed, 31 insertions(+), 45 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Replace use of deprecated Python module distutils.sysconfig, tak
@ 2022-02-02 00:03 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2022-02-02 00:03 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Replace use of deprecated Python module distutils.sysconfig, take 2.
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 largely the same, although we have to
rely on INCLUDEPY instead of the deprecated get_python_inc function.
Note that sysconfig exists since Python 2.7, so this moves the
minimum required version up from Python 2.6 (or 2.4, before v13).
Also, sysconfig didn't exist in Python 3.1, so the minimum 3.x
version is now 3.2.
Back-patch of commit bd233bdd8 into all supported branches.
In v10, this also includes back-patching v11's beff4bb9c, primarily
because this opinion is clearly out-of-date:
While at it, get rid of the code's assumption that both the major and
minor numbers contain exactly one digit. That will foreseeably be
broken by Python 3.10 in perhaps four or five years. That's far enough
out that we probably don't need to back-patch this.
Peter Eisentraut, Tom Lane, Andres Freund
Discussion: https://postgr.es/m/c74add3c-09c4-a9dd-1a03-a846e5b2fc52@enterprisedb.com
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/e41176bd6f47f580fdc4d2c18eab727021e62562
Modified Files
--------------
config/python.m4 | 33 +++++++++++++--------------------
configure | 37 +++++++++++++++----------------------
doc/src/sgml/installation.sgml | 6 +++---
3 files changed, 31 insertions(+), 45 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Replace use of deprecated Python module distutils.sysconfig, tak
@ 2022-02-02 00:03 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2022-02-02 00:03 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Replace use of deprecated Python module distutils.sysconfig, take 2.
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 largely the same, although we have to
rely on INCLUDEPY instead of the deprecated get_python_inc function.
Note that sysconfig exists since Python 2.7, so this moves the
minimum required version up from Python 2.6 (or 2.4, before v13).
Also, sysconfig didn't exist in Python 3.1, so the minimum 3.x
version is now 3.2.
Back-patch of commit bd233bdd8 into all supported branches.
In v10, this also includes back-patching v11's beff4bb9c, primarily
because this opinion is clearly out-of-date:
While at it, get rid of the code's assumption that both the major and
minor numbers contain exactly one digit. That will foreseeably be
broken by Python 3.10 in perhaps four or five years. That's far enough
out that we probably don't need to back-patch this.
Peter Eisentraut, Tom Lane, Andres Freund
Discussion: https://postgr.es/m/c74add3c-09c4-a9dd-1a03-a846e5b2fc52@enterprisedb.com
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a72c430120cf73e0788526641091a93d6835588b
Modified Files
--------------
config/python.m4 | 49 ++++++++++++++++++--------------------
configure | 54 ++++++++++++++++++++----------------------
doc/src/sgml/installation.sgml | 6 ++---
3 files changed, 52 insertions(+), 57 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2022-02-02 00:03 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 05:45 pgsql: Replace use of deprecated Python module distutils.sysconfig Peter Eisentraut <peter@eisentraut.org>
2022-01-25 23:52 pgsql: Replace use of deprecated Python module distutils.sysconfig, tak Tom Lane <tgl@sss.pgh.pa.us>
2022-02-02 00:03 pgsql: Replace use of deprecated Python module distutils.sysconfig, tak Tom Lane <tgl@sss.pgh.pa.us>
2022-02-02 00:03 pgsql: Replace use of deprecated Python module distutils.sysconfig, tak Tom Lane <tgl@sss.pgh.pa.us>
2022-02-02 00:03 pgsql: Replace use of deprecated Python module distutils.sysconfig, tak Tom Lane <tgl@sss.pgh.pa.us>
2022-02-02 00:03 pgsql: Replace use of deprecated Python module distutils.sysconfig, tak Tom Lane <tgl@sss.pgh.pa.us>
2022-02-02 00:03 pgsql: Replace use of deprecated Python module distutils.sysconfig, tak Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox