forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4d7d196
committed
Replace use of deprecated Python module distutils.sysconfig, take 2.
With Python 3.10, configure spits out warnings about the moduledistutils.sysconfig being deprecated and scheduled for removal inPython 3.12. Change the uses in configure to use the module sysconfiginstead. The logic stays largely the same, although we have torely on INCLUDEPY instead of the deprecated get_python_inc function.Note that sysconfig exists since Python 2.7, so this moves theminimum 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.xversion is now 3.2.Back-patch of commitbd233bd into all supported branches.In v10, this also includes back-patching v11'sbeff4bb, primarilybecause 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 FreundDiscussion:https://postgr.es/m/c74add3c-09c4-a9dd-1a03-a846e5b2fc52@enterprisedb.com1 parentff86ee3 commit4d7d196
3 files changed
+31
-45
lines changedLines changed: 13 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
41 |
| - | |
| 40 | + | |
| 41 | + | |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
45 |
| - | |
| 44 | + | |
| 45 | + | |
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
| 50 | + | |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
| 54 | + | |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
| 57 | + | |
| 58 | + | |
66 | 59 |
| |
67 | 60 |
| |
68 | 61 |
| |
| |||
96 | 89 |
| |
97 | 90 |
| |
98 | 91 |
| |
99 |
| - | |
100 |
| - | |
| 92 | + | |
| 93 | + | |
101 | 94 |
| |
102 | 95 |
| |
103 | 96 |
| |
| |||
109 | 102 |
| |
110 | 103 |
| |
111 | 104 |
| |
112 |
| - | |
| 105 | + | |
113 | 106 |
| |
114 | 107 |
| |
115 | 108 |
| |
116 |
| - | |
| 109 | + | |
117 | 110 |
| |
118 | 111 |
| |
119 | 112 |
| |
| |||
173 | 166 |
| |
174 | 167 |
| |
175 | 168 |
| |
176 |
| - | |
| 169 | + | |
177 | 170 |
| |
178 | 171 |
| |
179 | 172 |
| |
|
Lines changed: 15 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10038 | 10038 |
| |
10039 | 10039 |
| |
10040 | 10040 |
| |
10041 |
| - | |
10042 |
| - | |
| 10041 | + | |
| 10042 | + | |
10043 | 10043 |
| |
10044 | 10044 |
| |
10045 |
| - | |
10046 |
| - | |
10047 |
| - | |
| 10045 | + | |
| 10046 | + | |
| 10047 | + | |
10048 | 10048 |
| |
10049 | 10049 |
| |
10050 | 10050 |
| |
10051 | 10051 |
| |
10052 | 10052 |
| |
10053 | 10053 |
| |
10054 |
| - | |
| 10054 | + | |
10055 | 10055 |
| |
10056 | 10056 |
| |
10057 | 10057 |
| |
10058 | 10058 |
| |
10059 |
| - | |
| 10059 | + | |
10060 | 10060 |
| |
10061 | 10061 |
| |
10062 | 10062 |
| |
10063 |
| - | |
10064 |
| - | |
10065 |
| - | |
10066 |
| - | |
10067 |
| - | |
10068 |
| - | |
10069 |
| - | |
10070 |
| - | |
10071 |
| - | |
10072 |
| - | |
| 10063 | + | |
| 10064 | + | |
| 10065 | + | |
10073 | 10066 |
| |
10074 | 10067 |
| |
10075 | 10068 |
| |
| |||
10081 | 10074 |
| |
10082 | 10075 |
| |
10083 | 10076 |
| |
10084 |
| - | |
10085 |
| - | |
| 10077 | + | |
| 10078 | + | |
10086 | 10079 |
| |
10087 | 10080 |
| |
10088 | 10081 |
| |
| |||
10094 | 10087 |
| |
10095 | 10088 |
| |
10096 | 10089 |
| |
10097 |
| - | |
| 10090 | + | |
10098 | 10091 |
| |
10099 | 10092 |
| |
10100 | 10093 |
| |
10101 |
| - | |
| 10094 | + | |
10102 | 10095 |
| |
10103 | 10096 |
| |
10104 | 10097 |
| |
| |||
10158 | 10151 |
| |
10159 | 10152 |
| |
10160 | 10153 |
| |
10161 |
| - | |
| 10154 | + | |
10162 | 10155 |
| |
10163 | 10156 |
| |
10164 | 10157 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
199 |
| - | |
| 198 | + | |
| 199 | + | |
200 | 200 |
| |
201 |
| - | |
| 201 | + | |
202 | 202 |
| |
203 | 203 |
| |
204 | 204 |
| |
|
0 commit comments
Comments
(0)