]> granicus.if.org Git - python/commitdiff
bpo-32302: Fix distutils bdist_wininst for CRT v142 (#4851)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 14 Dec 2017 10:39:34 +0000 (11:39 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Dec 2017 10:39:34 +0000 (11:39 +0100)
CRT v142 is binary compatible with CRT v140.

Lib/distutils/command/bdist_wininst.py
Misc/NEWS.d/next/Library/2017-12-13-22-38-08.bpo-32302.othtTr.rst [new file with mode: 0644]

index 6309c3e248c6feb8fe6c28129ec8c47f839d8702..83f00732657d020d649ad4057cec9d96771bf125 100644 (file)
@@ -338,8 +338,8 @@ class bdist_wininst(Command):
                 bv = '14.0'
             else:
                 bv = '.'.join(CRT_ASSEMBLY_VERSION.split('.', 2)[:2])
-                if bv == '14.11':
-                    # v141 and v140 are binary compatible,
+                if bv in ('14.11', '14.12'):
+                    # v142, v141 and v140 are binary compatible,
                     # so keep using the 14.0 stub.
                     bv = '14.0'
 
diff --git a/Misc/NEWS.d/next/Library/2017-12-13-22-38-08.bpo-32302.othtTr.rst b/Misc/NEWS.d/next/Library/2017-12-13-22-38-08.bpo-32302.othtTr.rst
new file mode 100644 (file)
index 0000000..abe51f0
--- /dev/null
@@ -0,0 +1,2 @@
+Fix bdist_wininst of distutils for CRT v142: it binary compatible with CRT
+v140.