From a1b755d483958562119ef9049ad9812d2fc1c5a3 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Mon, 16 Mar 2020 19:11:07 +0100 Subject: [PATCH] Change windows CI packaging to use latest MSVC toolchain version. See #203 --- packager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packager.py b/packager.py index b558e47..358f1f9 100644 --- a/packager.py +++ b/packager.py @@ -82,10 +82,12 @@ def build_windows(package_info): msvc_dirs = glob.glob("C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\*\\VC\\Redist\\MSVC\\*") print("Found Redists: ", msvc_dirs) - msvc_dir = msvc_dirs[0] - print("Using: ",msvc_dir) - if len(msvc_dir) == 0: + if len(msvc_dirs) == 0: raise Exception("Cannot find redistributable dlls") + + msvc_dir = msvc_dirs[-1] # Take the most recent version of the toolchain + print("Using: ",msvc_dir) + dll_files = glob.glob(msvc_dir + "\\x64\\*CRT\\*.dll") print("Found DLLs:")