From f0e65d9f5a6537276194f1a4d9e4011d04f603e6 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Sun, 3 May 2020 23:27:23 +0200 Subject: [PATCH] Correct VC++ version in test_cpp17_modern_msvc_workaround --- test/10_cpp_standards/cibuildwheel_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/10_cpp_standards/cibuildwheel_test.py b/test/10_cpp_standards/cibuildwheel_test.py index dc81bea7..18bf44a4 100644 --- a/test/10_cpp_standards/cibuildwheel_test.py +++ b/test/10_cpp_standards/cibuildwheel_test.py @@ -80,8 +80,10 @@ def test_cpp17_modern_msvc_workaround(tmp_path): 'DISTUTILS_USE_SDK': '1', 'MSSdk': '1'} # Use existing distutils code to run Visual Studio's vcvarsall.bat + # MSVC++ 14.16 somehow corresponds to _MSC_VER == 1916 and should be included with + # Visual Studio 2017 version 15.9, the latest version of VS 2017 import distutils.msvc9compiler - vcvarsall_env = distutils.msvc9compiler.query_vcvarsall(14) + vcvarsall_env = distutils.msvc9compiler.query_vcvarsall(14.16) add_env.update(vcvarsall_env) actual_wheels = utils.cibuildwheel_run(project_dir, add_env=add_env)