Commit 9a97c496 authored by Steve Dower's avatar Steve Dower Committed by GitHub

bpo-32588: Move _findvs into its own module and add missing _queue module to installer (#5227)

parent b0138c4d
......@@ -56,7 +56,7 @@ def _find_vc2015():
return best_version, best_dir
def _find_vc2017():
import _findvs
import _distutils_findvs
import threading
best_version = 0, # tuple for full version comparisons
......@@ -66,7 +66,7 @@ def _find_vc2017():
# initialize COM.
all_packages = []
def _getall():
all_packages.extend(_findvs.findall())
all_packages.extend(_distutils_findvs.findall())
t = threading.Thread(target=_getall)
t.start()
t.join()
......
......@@ -337,11 +337,10 @@ class bdist_wininst(Command):
# cross-building, so assume the latest version
bv = '14.0'
else:
bv = '.'.join(CRT_ASSEMBLY_VERSION.split('.', 2)[:2])
if bv in ('14.11', '14.12'):
# v142, v141 and v140 are binary compatible,
# so keep using the 14.0 stub.
bv = '14.0'
# as far as we know, CRT is binary compatible based on
# the first field, so assume 'x.0' until proven otherwise
major = CRT_ASSEMBLY_VERSION.partition('.')[0]
bv = major + '.0'
# wininst-x.y.exe is in the same directory as this file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment