[Python-checkins] bpo-32302: Fix distutils bdist_wininst for CRT v142 (#4851)

Victor Stinner webhook-mailer at python.org
Thu Dec 14 05:39:37 EST 2017


https://github.com/python/cpython/commit/9e7c136ad8bc8e8eec50c2a8ae5ff02752f695a2
commit: 9e7c136ad8bc8e8eec50c2a8ae5ff02752f695a2
branch: master
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-12-14T11:39:34+01:00
summary:

bpo-32302: Fix distutils bdist_wininst for CRT v142 (#4851)

CRT v142 is binary compatible with CRT v140.

files:
A Misc/NEWS.d/next/Library/2017-12-13-22-38-08.bpo-32302.othtTr.rst
M Lib/distutils/command/bdist_wininst.py

diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py
index 6309c3e248c..83f00732657 100644
--- a/Lib/distutils/command/bdist_wininst.py
+++ b/Lib/distutils/command/bdist_wininst.py
@@ -338,8 +338,8 @@ def get_exe_bytes(self):
                 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
index 00000000000..abe51f094a8
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-12-13-22-38-08.bpo-32302.othtTr.rst
@@ -0,0 +1,2 @@
+Fix bdist_wininst of distutils for CRT v142: it binary compatible with CRT
+v140.



More information about the Python-checkins mailing list