Skip to content

Commit 645fa19

Browse files
miss-islingtonvstinner
authored andcommitted
bpo-32302: Fix distutils bdist_wininst for CRT v142 (GH-4851) (#4861)
CRT v142 is binary compatible with CRT v140. (cherry picked from commit 9e7c136)
1 parent 1d2a387 commit 645fa19

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Lib/distutils/command/bdist_wininst.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ def get_exe_bytes(self):
338338
bv = '14.0'
339339
else:
340340
bv = '.'.join(CRT_ASSEMBLY_VERSION.split('.', 2)[:2])
341-
if bv == '14.11':
342-
# v141 and v140 are binary compatible,
341+
if bv in ('14.11', '14.12'):
342+
# v142, v141 and v140 are binary compatible,
343343
# so keep using the 14.0 stub.
344344
bv = '14.0'
345345

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix bdist_wininst of distutils for CRT v142: it binary compatible with CRT
2+
v140.

0 commit comments

Comments
 (0)